Fix cross-spawn security vulnerability without breaking webpack dependencies #109
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.
This PR resolves the cross-spawn ReDoS security vulnerability (GHSA-3xgq-45jj-v275) that was preventing Dependabot PR #75 from merging due to CI failures.
Problem
The original Dependabot PR #75 failed with the following error:
This occurred because the dependency update process attempted to upgrade
terser-webpack-plugin
to version 5.2.3, which requires webpack 5.0.0 or higher, but the project uses webpack 4.44.2.Solution
Instead of forcing dependency upgrades that cause peer dependency conflicts, this PR uses
npm audit fix
to safely resolve the cross-spawn vulnerability. This approach:Verification
The fix has been verified by:
npm install && npm run build
successfullyAfter this change, the remaining security vulnerabilities are in esbuild/vite which would require breaking changes and are outside the scope of this cross-spawn fix.
Fixes #108.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.