Skip to content

Cross-site Scripting in DOMSanitizer

Moderate severity GitHub Reviewed Published Nov 23, 2023 to the GitHub Advisory Database • Updated Nov 28, 2023

Package

composer rhukster/dom-sanitizer (Composer)

Affected versions

< 1.0.7

Patched versions

1.0.7

Description

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

References

Published by the National Vulnerability Database Nov 22, 2023
Published to the GitHub Advisory Database Nov 23, 2023
Reviewed Nov 23, 2023
Last updated Nov 28, 2023

Severity

Moderate
6.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2023-49146

GHSA ID

GHSA-2ghm-r75j-pjx2
Checking history
See something to contribute? Suggest improvements for this vulnerability.