{"id":"CVE-2023-38500","published":"2023-07-25T20:59:53Z","modified":"2024-10-10T17:36:20Z","title":"By-passing Cross-Site Scripting Protection in HTML Sanitizer","vendor":"TYPO3","product":"html-sanitizer","tier":"tail","description":{"text":"TYPO3 HTML Sanitizer is an HTML sanitizer, written in PHP, aiming to provide cross-site-scripting-safe markup based on explicitly allowed tags, attributes and values. Starting in version 1.0.0 and prior to versions 1.5.1 and 2.1.2, due to an encoding issue in the serialization layer, malicious markup nested in a `noscript` element was not encoded correctly. `noscript` is disabled in the default configuration, but might have been enabled in custom scenarios. This allows bypassing the cross-site scripting mechanism of TYPO3 HTML Sanitizer. Versions 1.5.1 and 2.1.2 fix the problem.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00617,"percentile":0.43833,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-59jf-3q9v-rh6g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/TYPO3/html-sanitizer/commit/e3026f589fef0be8c3574ee3f0a0bfbe33d7ebdb","tags":["x_refsource_MISC"]},{"url":"https://typo3.org/security/advisory/typo3-core-sa-2023-002","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":8.77},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"typo3","affectedVersions":[{"vendor":"TYPO3","product":"html-sanitizer","versions":[">= 1.0.0, < 1.5.1",">= 2.0.0, < 2.1.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-10T16:24:38.252139Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"typo3/html-sanitizer","vulnerableRanges":[">=1.0.0, <1.5.1",">=2.0.0, <2.1.2"],"patched":["1.5.1","2.1.2"],"from":["GHSA-59jf-3q9v-rh6g"],"provenance":"source"}],"summary":{"text":"The html-sanitizer library from TYPO3, a PHP HTML sanitizer intended to produce XSS-safe markup from explicitly allowed tags, attributes and values, fails to encode malicious markup nested inside a noscript element because of an encoding issue in its serialization layer. An unauthenticated remote attacker can exploit this to bypass the sanitizer's cross-site scripting protection, but only where noscript has been enabled in a custom configuration (it is disabled by default), and only if a user interacts with the crafted content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:06Z"},"euvd":{"id":"EUVD-2023-1965","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-typo3-html-sanitizer-cve-2023-38500","children":[{"from":"CVE-2023-38500","to":"CVE-2023-47125","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:typo3/html-sanitizer","fromFixed":"1.5.1","toFixed":"1.5.3","daysApart":112},{"kind":"version-step","provenance":"source","package":"Packagist:typo3/html-sanitizer","fromFixed":"2.1.2","toFixed":"2.1.4","daysApart":112},{"kind":"same-code","provenance":"machine","files":["src/Behavior.php","src/Builder/CommonBuilder.php","src/Visitor/CommonVisitor.php"],"commits":["https://github.com/TYPO3/html-sanitizer/commit/e3026f589fef0be8c3574ee3f0a0bfbe33d7ebdb","https://github.com/TYPO3/html-sanitizer/commit/b8f90717251d968c49dc77f8c1e5912e2fbe0dff"],"basis":"shared function","functions":["Behavior"]}]}],"packageHistory":[{"cve":"CVE-2022-36020","published":"2022-09-13","fixed":"2.0.16","kev":false},{"cve":"CVE-2022-23499","published":"2022-12-13","fixed":"2.1.1","kev":false,"link":{"from":"CVE-2022-23499","to":"CVE-2023-38500","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:typo3/html-sanitizer","fromFixed":"1.5.0","toFixed":"1.5.1","daysApart":224},{"kind":"version-step","provenance":"source","package":"Packagist:typo3/html-sanitizer","fromFixed":"2.1.1","toFixed":"2.1.2","daysApart":224}]}},{"cve":"CVE-2023-38500","published":"2023-07-25","fixed":"2.1.2","kev":false},{"cve":"CVE-2023-47125","published":"2023-11-14","fixed":"2.1.4","kev":false},{"cve":"CVE-2026-47344","published":"2026-06-08","fixed":"2.3.2","kev":false},{"cve":"CVE-2026-47345","published":"2026-06-08","fixed":"2.3.2","kev":false}],"package":"Packagist:typo3/html-sanitizer"}}