Resolve postcss XSS vulnerability#44
Open
anumol-baby wants to merge 2 commits intomainfrom
Open
Conversation
There was a problem hiding this comment.
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
overridesentry to requirepostcssat a patched version. - Updated
package-lock.jsonto resolvepostcss(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
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Summary
Fixes moderate severity PostCSS XSS vulnerability (GHSA-qx2v-qp2m-jg93).
Changes
overridesinpackage.jsonto pinpostcssto>=8.5.10package-lock.jsonaccordinglyDetails
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.