CVE-2026-28499
published medium CVSS 4.0 · 6.9LeafKit's HTML escaping may be skipped for Collection values, enabling XSS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vapor | — | leaf-kit< 1.14.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vapor | leaf-kit | < 1.14.2 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-80 CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
- CWE-116 CWE-116: Improper Encoding or Escaping of Output
References
3Provider assertions
2GitHub_M · cna
LeafKit's HTML escaping may be skipped for Collection values, enabling XSS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b37de70fad157db81d95b2cafa6033207c4338f7e96e495d685491054599cc6a
- Ingested
- 23 Sep 2026, 09:08:14 UTC
- Source record
- Official CVE record