Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. rhukster/dom-sanitizer
  4. ›
  5. CVE-2023-49146

CVE-2023-49146: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

November 22, 2023 (updated November 28, 2023)

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

References

  • github.com/advisories/GHSA-2ghm-r75j-pjx2
  • github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601
  • github.com/rhukster/dom-sanitizer/compare/1.0.6...1.0.7
  • nvd.nist.gov/vuln/detail/CVE-2023-49146

Code Behaviors & Features

Detect and mitigate CVE-2023-49146 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.7

Fixed versions

  • 1.0.7

Solution

Upgrade to version 1.0.7 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/rhukster/dom-sanitizer/CVE-2023-49146.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:16 +0000.