{"id":"CVE-2026-28499","published":"2026-03-18T01:19:36Z","modified":"2026-03-18T14:08:06Z","title":"LeafKit's HTML escaping may be skipped for Collection values, enabling XSS","vendor":"vapor","product":"leaf-kit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00306,"percentile":0.24005,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc","tags":["x_refsource_MISC"]},{"url":"https://github.com/vapor/leaf-kit/releases/tag/1.14.2","tags":["x_refsource_MISC"]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":4.8},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"vapor","affectedVersions":[{"vendor":"vapor","product":"leaf-kit","versions":["< 1.14.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-18T14:08:03.027830Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"SwiftURL","package":"github.com/vapor/leaf-kit","vulnerableRanges":["<1.14.2"],"patched":["1.14.2"],"from":["GHSA-6jj5-j4j8-8473"],"provenance":"source"}],"summary":{"text":"The flaw is in the LeafKit templating language's HTML escaping (product: vapor/leaf-kit), where escaping is skipped when a template prints a collection such as an Array or Dictionary via #(value), affecting versions prior to 1.14.2.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:27Z"},"euvd":{"id":"EUVD-2026-12696","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-37634","published":"2021-08-09","fixed":"1.3.0","kev":false},{"cve":"CVE-2026-27120","published":"2026-02-20","fixed":"1.4.1","kev":false,"link":{"from":"CVE-2026-27120","to":"CVE-2026-28499","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/leaf-kit","fromFixed":"1.4.1","toFixed":"1.14.2","daysApart":26},{"kind":"similar","provenance":"machine","score":0.37,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-28499","published":"2026-03-18","fixed":"1.14.2","kev":false}],"package":"SwiftURL:github.com/vapor/leaf-kit"}}