# CVE-2026-28499: LeafKit's HTML escaping may be skipped for Collection values, enabling XSS

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-16T16:22:56.000Z
- Modified: 2026-06-17T10:28:45.043Z
- Also known as: GHSA-6jj5-j4j8-8473
- Weaknesses: CWE-79, CWE-80, CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- vapor leaf-kit: < 1.14.2
- github.com/vapor/leaf-kit (SwiftURL): before 1.14.2
- vapor leafkit: before 1.14.2

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473> (exploit, vendor-advisory, web)
- <https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc> (patch, web)
- <https://github.com/vapor/leaf-kit/releases/tag/1.14.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-28499> (advisory)
- <https://github.com/vapor/leaf-kit> (package)

## Sources

- CVE List: [CVE-2026-28499](https://www.cve.org/CVERecord?id=CVE-2026-28499), CVE Terms of Use, modified 2026-03-18
- GitHub Advisory Database: [GHSA-6jj5-j4j8-8473](https://github.com/advisories/GHSA-6jj5-j4j8-8473), CC-BY-4.0, modified 2026-05-07
- NVD: [CVE-2026-28499](https://nvd.nist.gov/vuln/detail/CVE-2026-28499), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-28499 · Whole record: https://cve.day/CVE-2026-28499.json · Rebuilt by cve.day 2026-11-25T22:59:16.076Z
