-
Notifications
You must be signed in to change notification settings - Fork 561
[GHSA-v2wj-7wpq-c8vv] DOMPurify contains a Cross-site Scripting vulnerability #7261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,14 @@ | ||
| { | ||
| "schema_version": "1.4.0", | ||
| "id": "GHSA-v2wj-7wpq-c8vv", | ||
| "modified": "2026-03-27T21:59:55Z", | ||
| "modified": "2026-03-27T21:59:57Z", | ||
| "published": "2026-03-03T18:31:33Z", | ||
| "aliases": [ | ||
| "CVE-2026-0540" | ||
| ], | ||
| "summary": "DOMPurify contains a Cross-site Scripting vulnerability", | ||
| "details": "DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in 2.5.9 and 3.3.2, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the `SAFE_FOR_XML` regex. Attackers can include payloads like `</noscript><img src=x onerror=alert(1)>` in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.", | ||
| "severity": [ | ||
| { | ||
| "type": "CVSS_V3", | ||
| "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N" | ||
| }, | ||
| { | ||
| "type": "CVSS_V4", | ||
| "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N" | ||
|
|
@@ -92,10 +88,6 @@ | |
| { | ||
| "type": "WEB", | ||
| "url": "https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml" | ||
| }, | ||
| { | ||
| "type": "WEB", | ||
| "url": "https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safeforxml" | ||
| } | ||
| ], | ||
| "database_specific": { | ||
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description says "Updates - CVSS v3", but the diff removes the
CVSS_V3entry entirely. If the intent is to update CVSS v3, adjust/replace the v3 vector/score instead of deleting it; if the intent is to drop CVSS v3, please update the PR description accordingly.