MediumGHSA-2ghm-r75j-pjx2CVE-2023-49146
Cross-site Scripting in DOMSanitizer
Published 23 Nov 2023 · Updated 16 Feb 2024
Is your project on an affected rhukster/dom-sanitizer?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
rhukster/dom-sanitizerComposer
- Affected
- <1.0.7
- Fixed in
- 1.0.7
Update to the fixed version for your release line, for example:
composer require rhukster/dom-sanitizer:^1.0.7Details
DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.
Is GHSA-2ghm-r75j-pjx2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rhukster/dom-sanitizer, and gives you the command that fixes it.
More advisories for rhukster/dom-sanitizer
- MediumCVE-2026-40301rhukster/dom-sanitizer: SVG <style> tag allows CSS injection via unfiltered url() and @import directives · 10 Apr 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.