CVE-2023-49146Getgrav Dom-sanitizer
Medium 6.1 No auth needed
Follow: this CVE · Getgrav · Getgrav Dom-sanitizer We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 35
- Auth required
- No
- Published
- Nov 22, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.
What to do
- Apply the vendor's security update for Dom-sanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | rhukster/dom-sanitizer |
< 1.0.7 |
1.0.7 |
composer require "rhukster/dom-sanitizer:^1.0.7" |
Per OSV / GitHub Advisories (GHSA-2ghm-r75j-pjx2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| getgrav | dom-sanitizer | < 1.0.7 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch