{"id":"CVE-2023-49146","published":"2023-11-22T00:00:00Z","modified":"2024-08-02T21:46:29Z","title":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and…","vendor":null,"product":null,"tier":"tail","description":{"text":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00506,"percentile":0.43787,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601","tags":[]},{"url":"https://github.com/rhukster/dom-sanitizer/compare/1.0.6...1.0.7","tags":[]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":8.76}]},"affected":[{"ecosystem":"Packagist","package":"rhukster/dom-sanitizer","vulnerableRanges":["<1.0.7"],"patched":["1.0.7"],"from":["GHSA-2ghm-r75j-pjx2"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting weakness in DOMSanitizer (also known as dom-sanitizer), an affected component in versions before 1.0.7, caused by mishandling of comments and greedy regular expressions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:39Z"},"euvd":{"id":"EUVD-2023-2848","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rhukster-dom-sanitizer-cve-2023-49146","children":[{"from":"CVE-2023-49146","to":"CVE-2026-100370","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/DOMSanitizer.php"],"commits":["https://github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601","https://github.com/rhukster/dom-sanitizer/commit/10f97807e4501d60f63987f2e76a38cdbf312dcb","https://github.com/rhukster/dom-sanitizer/commit/fb8f758b41134fc5fb2f563666f2330c69e31f94"],"basis":"shared function","functions":["DOMSanitizer","regexCleaning"]}]},{"from":"CVE-2023-49146","to":"CVE-2026-103686","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/DOMSanitizer.php"],"commits":["https://github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601","https://github.com/rhukster/dom-sanitizer/commit/4623b565d060bc02ca5a07d8c8241fe28e2edfda"],"basis":"shared function","functions":["DOMSanitizer"]}]}]}}