Skip to content

Resolve postcss XSS vulnerability#44

Open
anumol-baby wants to merge 2 commits intomainfrom
anu/fix/postcss-vulnerability
Open

Resolve postcss XSS vulnerability#44
anumol-baby wants to merge 2 commits intomainfrom
anu/fix/postcss-vulnerability

Conversation

@anumol-baby
Copy link
Copy Markdown
Contributor

@anumol-baby anumol-baby commented May 5, 2026

Summary

Fixes moderate severity PostCSS XSS vulnerability (GHSA-qx2v-qp2m-jg93).

Changes

  • Added overrides in package.json to pin postcss to >=8.5.10
  • Updated package-lock.json accordingly

Details

PostCSS versions < 8.5.10 are vulnerable to XSS via unescaped </style> in CSS stringify output. This fix uses npm overrides to ensure the patched version is used without downgrading Next.js.

Copilot AI review requested due to automatic review settings May 5, 2026 16:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Pins PostCSS to a patched version line to address the moderate XSS vulnerability advisory (GHSA-qx2v-qp2m-jg93) without changing the Next.js dependency directly.

Changes:

  • Added an npm overrides entry to require postcss at a patched version.
  • Updated package-lock.json to resolve postcss (and related transitive deps) to newer versions.
Show a summary per file
File Description
package.json Adds an npm overrides rule to force PostCSS to a patched version range.
package-lock.json Updates resolved dependency graph to use PostCSS 8.5.x and updated transitive dependencies.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/2 changed files
  • Comments generated: 1

Comment thread package.json Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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