{"id":"CVE-2026-28499","summary":"LeafKit's HTML escaping may be skipped for Collection values, enabling XSS","details":"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.","aliases":["GHSA-6jj5-j4j8-8473"],"modified":"2026-04-10T05:41:18.636465Z","published":"2026-03-18T01:19:36.122Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28499.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-116","CWE-79","CWE-80"]},"references":[{"type":"WEB","url":"https://github.com/vapor/leaf-kit/releases/tag/1.14.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28499.json"},{"type":"ADVISORY","url":"https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28499"},{"type":"FIX","url":"https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vapor/leaf-kit","events":[{"introduced":"0"},{"fixed":"6044b844caa858a0c5f2505ac166f5a057c990dc"}]}],"versions":["1.0.0","1.0.0-alpha.1","1.0.0-beta.2","1.0.0-beta.2.1","1.0.0-beta.2.2","1.0.0-rc.1","1.0.0-rc.1.1","1.0.0-rc.1.10","1.0.0-rc.1.11","1.0.0-rc.1.12","1.0.0-rc.1.13","1.0.0-rc.1.14","1.0.0-rc.1.15","1.0.0-rc.1.16","1.0.0-rc.1.17","1.0.0-rc.1.2","1.0.0-rc.1.3","1.0.0-rc.1.4","1.0.0-rc.1.5","1.0.0-rc.1.6","1.0.0-rc.1.7","1.0.0-rc.1.8","1.0.0-rc.1.9","1.0.0-tau.1","1.0.0-tau.1.1","1.0.0-zeta.1","1.1.0","1.10.0","1.10.1","1.10.2","1.10.3","1.10.4","1.10.5","1.10.6","1.11.0","1.11.1","1.12.0","1.13.0","1.13.1","1.14.0","1.14.1","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.6.0","1.7.0","1.8.0","1.9.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-28499.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}