Description
LeafKit is a templating language with Swift-inspired syntax. Prior to version 1.14.2, HTML escaping doesn't work correctly when a template prints a collection (Array / Dictionary) via `#(value)`. This can result in XSS, allowing potentially untrusted input to be rendered unescaped. Version 1.14.2 fixes the issue.
Metrics
CVSS 3.1 6.1/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| vapor | leaf-kit | < 1.14.2 |
References
- https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dcPatch
- https://github.com/vapor/leaf-kit/releases/tag/1.14.2Release Notes
- https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473Exploit, Vendor Advisory
- https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473Exploit, Vendor Advisory
Timeline
- Published
- Mar 18, 2026
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed