fix: address npm audit security vulnerabilities#8602
Open
Conversation
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
rzhao271
March 18, 2026 22:50
View session
rzhao271
approved these changes
Mar 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses npm audit findings by updating a direct dependency and pinning several vulnerable transitive dependencies via npm overrides, alongside updating VS Code proposed API typings for chat session forking.
Changes:
- Bumped
terser-webpack-pluginto a patched version to addressserialize-javascriptvulnerability exposure. - Added npm
overridesto pindiff,serialize-javascript, andellipticto non-vulnerable versions. - Extended proposed VS Code API typings to support forking chat sessions via a new handler (and deprecated the older fork handler location).
Reviewed changes
Copilot reviewed 1 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/@types/vscode.proposed.chatSessionsProvider.d.ts |
Adds/updates proposed API types for chat session forking and adjusts provider registration parameter naming/docs. |
package.json |
Updates terser-webpack-plugin and introduces npm overrides for vulnerable transitive dependencies. |
package-lock.json |
Regenerates lockfile to reflect the dependency bump and overrides-pinned transitive dependency graph. |
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
|
@copilot Run npm i to update lockfile. |
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Contributor
Author
Copilot stopped work on behalf of
rzhao271 due to an error
March 18, 2026 23:22
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
Addresses security vulnerabilities found by
npm audit.Changes
High severity (fixed)
terser-webpack-pluginfrom5.1.1→5.3.17(direct dep fix). Addedoverridesentry to pinserialize-javascriptto7.0.4for mocha's transitive dependency.overridesentry to pindiffto8.0.3, fixing mocha's transitive dependency.Low severity (mitigated)
overridesentry to pinellipticto6.6.1(latest). npm audit still reports this since the advisory marks all versions as vulnerable, but the GitHub Advisory Database confirms6.6.1is safe. The only npm-suggested fix would downgradecrypto-browserifyfrom3.12.0→3.3.0, which is a major breaking change.Security Summary
crypto-browserifydowngrade