[GHSA-v2wj-7wpq-c8vv] DOMPurify contains a Cross-site Scripting vulnerability#7262
Open
caverav wants to merge 2 commits intocaverav/advisory-improvement-7262from
Open
[GHSA-v2wj-7wpq-c8vv] DOMPurify contains a Cross-site Scripting vulnerability#7262caverav wants to merge 2 commits intocaverav/advisory-improvement-7262from
caverav wants to merge 2 commits intocaverav/advisory-improvement-7262from
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the DOMPurify XSS advisory metadata, mainly around scoring and references.
Changes:
- Removes the CVSS v3 severity entry, leaving only CVSS v4
- Removes a broken/duplicate reference URL
- Updates the
modifiedtimestamp
Comments suppressed due to low confidence (2)
advisories/github-reviewed/2026/03/GHSA-v2wj-7wpq-c8vv/GHSA-v2wj-7wpq-c8vv.json:16
- The PR description says it updates 'CVSS v3', but the diff removes the
CVSS_V3entry entirely (leaving onlyCVSS_V4). Either update the PR description to reflect that CVSS v3 is being removed, or restore/update the CVSS v3 score as intended. Also, the description mentions adding finder credit, but no credit-related field is added/updated in this change.
"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_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"
}
],
advisories/github-reviewed/2026/03/GHSA-v2wj-7wpq-c8vv/GHSA-v2wj-7wpq-c8vv.json:16
- Dropping
CVSS_V3can be a compatibility break for downstream consumers that only ingest v3 vectors/scores. If the advisory previously carried CVSS v3, consider keeping it alongside CVSS v4 (or documenting why v3 is intentionally removed) to avoid reducing usability of the advisory data.
"severity": [
{
"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"
}
],
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
Comments
Remove broken advisory link, I also would like credit as I found this vulnerability