CVE-2026-28499
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.
- Score
- CVSS 4.0 6.9 Medium
- Status
- Analyzed - security-advisories@github.com
- Published
- 2026-03-18
- Last modified
- 2026-03-18
- Weaknesses
- CWE-116, CWE-79, CWE-80
Affected products
References
- https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc
- https://github.com/vapor/leaf-kit/releases/tag/1.14.2
- https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473