CVE-2026-28499 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in LeafKit, a templating language for Swift. This issue affects versions prior to 1.14.2. The vulnerability arises because HTML escaping is not properly applied when a template renders collections (arrays or dictionaries) using the '#(value)' syntax. As a result, potentially untrusted input can be displayed without proper escaping, creating an XSS risk.
Users can update to LeafKit version 1.14.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc | [email protected] | Patch |
| https://github.com/vapor/leaf-kit/releases/tag/1.14.2 | [email protected] | Release Notes |
| https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-80 | Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vapor leafkit | < 1.14.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | Initial Analysis | [email protected] |
| Mar 18, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | New CVE Received | [email protected] |