Skip to content

[GHSA-xc6g-ggrc-qq4r] Cross-Site Scripting in sanitize-html - #9631

Open
nikpivkin wants to merge 1 commit into
nikpivkin/advisory-improvement-9631from
nikpivkin-GHSA-xc6g-ggrc-qq4r
Open

nikpivkin wants to merge 1 commit into
nikpivkin/advisory-improvement-9631from
nikpivkin-GHSA-xc6g-ggrc-qq4r

Conversation

@nikpivkin

Copy link
Copy Markdown

Updates

  • Affected products
  • Source code location

Comments
The range should be < 1.11.4, not <= 1.11.1.

The fix is apostrophecms/sanitize-html@5d205a1. The repository has no tags for 1.11.2 and 1.11.3, so I checked the npm packages. In 1.11.1, 1.11.2 and 1.11.3, index.js still has the old check "if (nonTextTagsArray.indexOf(tag) !== -1)". Version 1.11.4 is the first one with the fixed check "if ((tag === 'script') || (tag === 'style'))".

So versions 1.11.2 and 1.11.3 are still vulnerable but are outside the current range.

I also added the source code location. The vulnerable versions, the fix commit and issue #100 are in apostrophecms/sanitize-html, the old punkave/sanitize-html redirects there. Other sanitize-html advisories from 2021 to 2025 use the same location.

Copilot AI balanced review requested due to automatic review settings September 19, 2026 15:10
@github-actions
github-actions Bot changed the base branch from main to nikpivkin/advisory-improvement-9631 September 19, 2026 15:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The repository reference must use the PACKAGE type for consistent machine-readable classification.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Updates the sanitize-html advisory to correct affected-version metadata and add its source repository.

Changes:

  • Removes the stale affected-version limit.
  • Adds the current source repository reference.
  • Updates the modification timestamp.
File Description
GHSA-xc6g-ggrc-qq4r.json Corrects advisory metadata and adds the repository URL.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

"url": "https://github.com/advisories/GHSA-xc6g-ggrc-qq4r"
},
{
"type": "WEB",

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, it should be PACKAGE. I filled the "Source code location" field in the form, and the form saved it as WEB. I opened #9634 about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants