{"id":"CVE-2026-28499","state":"PUBLISHED","title":"LeafKit's HTML escaping may be skipped for Collection values, enabling XSS","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.","publishedAt":"2026-03-18T01:19:36.122Z","updatedAt":"2026-03-18T14:08:06.611Z","severity":{"score":6.9,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["vapor leaf-kit"],"affected":[{"vendor":"vapor","product":"leaf-kit","versions":[{"version":"< 1.14.2","status":"affected"}]}],"references":["https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473","https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc","https://github.com/vapor/leaf-kit/releases/tag/1.14.2"],"weaknesses":["CWE-79","CWE-80","CWE-116"],"ingestedAt":"2026-10-29T20:11:31.369Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/28xxx/CVE-2026-28499.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-28499","state":"PUBLISHED","datePublished":"2026-03-18T01:19:36.122Z","dateUpdated":"2026-03-18T14:08:06.611Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-02-27T20:57:47.708Z"},"containers":{"cna":{"title":"LeafKit's HTML escaping may be skipped for Collection values, enabling XSS","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"vapor","product":"leaf-kit","versions":[{"version":"< 1.14.2","status":"affected"}]}],"references":[{"url":"https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473","name":"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","name":"https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc","tags":["x_refsource_MISC"]},{"url":"https://github.com/vapor/leaf-kit/releases/tag/1.14.2","name":"https://github.com/vapor/leaf-kit/releases/tag/1.14.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-80","lang":"en","description":"CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-116","lang":"en","description":"CWE-116: Improper Encoding or Escaping of Output","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-03-18T01:19:36.122Z"},"source":{"advisory":"GHSA-6jj5-j4j8-8473","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-18T14:08:03.027830Z","id":"CVE-2026-28499","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-18T14:08:06.611Z"}}]}}}