CVE-2026-28499 LeafKit's HTML escaping may be skipped for Collection values, enabling XSS
MediumCVSS 6.9
EPSS 0.31%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| swifturl github.com/vapor/leaf-kit(SwiftURL) | < 1.14.2 | 1.14.2 | Fixed |
| vapor leafkit | < 1.14.2 | 1.14.2 | Fixed |
| vapor leaf-kit | = < 1.14.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vapor leaf-kit | = < 1.14.2 | No fix listed |
| swifturl github.com/vapor/leaf-kit(SwiftURL) | < 1.14.2 | 1.14.2 |
| vapor leafkit | < 1.14.2 | 1.14.2 |
References
- https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473 exploit vendor-advisory
- https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc patch
- https://github.com/vapor/leaf-kit/releases/tag/1.14.2 release-notes
- nvd.nist.gov third-party-advisory
- github.com