GHSA-vhxf-7vqr-mrjg

Suggest an improvement
Source
https://github.com/advisories/GHSA-vhxf-7vqr-mrjg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-vhxf-7vqr-mrjg/GHSA-vhxf-7vqr-mrjg.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-vhxf-7vqr-mrjg
Aliases
Downstream
CGA (62)
Published
2025-02-14T09:31:22Z
Modified
2026-07-17T21:06:09Z
Severity
  • 4.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
Summary
DOMPurify allows Cross-site Scripting (XSS)
Details

DOMPurify before 3.2.4 has an incorrect template literal regular expression when SAFE_FOR_TEMPLATES is set to true, sometimes leading to mutation cross-site scripting (mXSS).

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-02-14T18:05:08Z",
    "nvd_published_at":  "2025-02-14T09:15:08Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / dompurify

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.2.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-vhxf-7vqr-mrjg/GHSA-vhxf-7vqr-mrjg.json"