{"id":"CVE-2024-34078","state":"PUBLISHED","title":"html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization","description":"html-sanitizer is an allowlist-based HTML cleaner. If using `keep_typographic_whitespace=False` (which is the default), the sanitizer normalizes unicode to the NFKC form at the end. Some unicode characters normalize to chevrons; this allows specially crafted HTML to escape sanitization. The problem has been fixed in 2.4.2.\n","publishedAt":"2024-05-06T14:48:47.506Z","updatedAt":"2024-08-26T18:03:11.753Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["matthiask html-sanitizer"],"affected":[{"vendor":"matthiask","product":"html-sanitizer","versions":[{"version":"< 2.4.2","status":"affected"}]}],"references":["https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3","https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550","https://lists.debian.org/debian-lts-announce/2024/08/msg00000.html"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/34xxx/CVE-2024-34078.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-34078","state":"PUBLISHED","datePublished":"2024-05-06T14:48:47.506Z","dateUpdated":"2024-08-26T18:03:11.753Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-04-30T06:56:33.383Z"},"containers":{"cna":{"title":"html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization","descriptions":[{"lang":"en","value":"html-sanitizer is an allowlist-based HTML cleaner. If using `keep_typographic_whitespace=False` (which is the default), the sanitizer normalizes unicode to the NFKC form at the end. Some unicode characters normalize to chevrons; this allows specially crafted HTML to escape sanitization. The problem has been fixed in 2.4.2.\n"}],"affected":[{"vendor":"matthiask","product":"html-sanitizer","versions":[{"version":"< 2.4.2","status":"affected"}]}],"references":[{"url":"https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3","name":"https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550","name":"https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-05-06T14:48:47.506Z"},"source":{"advisory":"GHSA-wvhx-q427-fgh3","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-34078","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-06T20:39:29.806844Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:41:44.888Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3","name":"https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550","name":"https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/08/msg00000.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-26T18:03:11.753Z"}}]}}}