CVE-2026-28499 json
LeafKit's HTML escaping may be skipped for Collection values, enabling XSS
published 2026-03-16 7 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-12696 , GHSA-6jj5-j4j8-8473
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- swift github.com/vapor/leaf-kit 1.14.2
- vapor leafkit 1.14.2
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 7 mo ago
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N |
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| swift | github.com/vapor/leaf-kit | <1.14.2 |
1.14.2 |
Affected products
- vapor leaf-kit
Classification
References
-
github.com
/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc
web, patch
-
github.com
/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473
exploit, web, vendor-advisory
-
github.com
/vapor/leaf-kit/releases/tag/1.14.2
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-28499
advisory
-
github.com
/vapor/leaf-kit
package
Sources
- CVE List CVE-2026-28499
- GitHub Advisory GHSA-6jj5-j4j8-8473
- NVD CVE-2026-28499
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.