Every CVE Search/ Get API key

CVE-2023-49146

Cross-site Scripting in DOMSanitizer

6.1 MediumFix available

DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

0.43%Up 0.4 points since Nov 23, 2023
90%50%10%1%

What each source reports

NVD Score used 6.1

DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.

Record
CVE-2023-49146
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
CVE List No score

DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.

Record
CVE-2023-49146
Updated
2026-11-02
EUVDEUVD-2023-2848 No score

DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.

Record
EUVD-2023-2848
Updated
2026-11-03
GitHub AdvisoriesGHSA-2ghm-r75j-pjx2 6.1

Cross-site Scripting in DOMSanitizer

DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.

Record
GHSA-2ghm-r75j-pjx2
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
OSVGHSA-2ghm-r75j-pjx2 6.1

Cross-site Scripting in DOMSanitizer

DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.

Record
GHSA-2ghm-r75j-pjx2
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
OSV No score

DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.

Record
CVE-2023-49146
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
rhukster/dom-sanitizer
Packagist
before 1.0.7
1.0.7
rhukster/dom-sanitizer
Packagist
before 1.0.7, plus listed versions
1.0.01.0.11.0.21.0.31.0.41.0.51.0.6
1.0.7

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-49146 is a medium vulnerability (CVSS 6.1) in Getgrav Dom-sanitizer, published November 22, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.43%, the 37th percentile. Fixed in rhukster/dom-sanitizer 1.0.7.

References

MoveEnter Open