{"id":"CVE-2023-49146","aliases":["EUVD-2023-2848","GHSA-2ghm-r75j-pjx2"],"status":"published","title":"Cross-site Scripting in DOMSanitizer","description":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00429,"percentile":0.37478,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2023-11-22T00:00:00Z","modified":"2026-10-28T02:30:26Z","fixes":[{"ecosystem":"Packagist","package":"rhukster/dom-sanitizer","fixed_in":["1.0.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"rhukster/dom-sanitizer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.7"}]}]},{"source":"osv","ecosystem":"Packagist","package":"rhukster/dom-sanitizer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.7"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6"]}],"products":[{"vendor":"getgrav","product":"dom-sanitizer"}],"references":[{"url":"https://github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601","tags":["x_transferred","Patch","fix","web"]},{"url":"https://github.com/rhukster/dom-sanitizer/compare/1.0.6...1.0.7","tags":["x_transferred","Patch","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49146","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-2ghm-r75j-pjx2"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49146.json","tags":["advisory"]},{"url":"https://github.com/rhukster/dom-sanitizer","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-49146","description":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","status":"published","published":"2023-11-22T00:00:00Z","modified":"2024-08-02T21:46:29.18Z","updated_at":"2026-11-02T14:35:12.596526Z"}],"euvd":[{"id":"EUVD-2023-2848","description":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","status":"published","published":"2023-11-22T00:00:00Z","modified":"2024-08-02T21:46:29Z","updated_at":"2026-11-03T03:49:56.293511Z"}],"ghsa":[{"id":"GHSA-2ghm-r75j-pjx2","title":"Cross-site Scripting in DOMSanitizer","description":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","status":"published","published":"2023-11-23T00:30:58Z","modified":"2023-11-28T23:14:43Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:22.840002Z"}],"nvd":[{"id":"CVE-2023-49146","description":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","status":"published","published":"2023-11-22T22:15:08.913Z","modified":"2026-06-17T06:35:28.09Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:08:49.393375Z"}],"osv":[{"id":"GHSA-2ghm-r75j-pjx2","title":"Cross-site Scripting in DOMSanitizer","description":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","status":"published","published":"2023-11-23T00:30:58Z","modified":"2024-02-16T08:04:08.217056Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:34.338541Z"},{"id":"CVE-2023-49146","description":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","status":"published","published":"2023-11-22T00:00:00Z","modified":"2026-10-28T02:30:26.859334249Z","updated_at":"2026-11-02T15:44:34.72355Z"}]}}
