fix: npm audit - fix high severity vulnerabilities#8601
Closed
fix: npm audit - fix high severity vulnerabilities#8601
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 17:38
View session
rzhao271
approved these changes
Mar 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce high-severity npm audit findings by updating build tooling dependencies and pinning patched transitive dependency versions via package.json overrides.
Changes:
- Bumped
terser-webpack-pluginfrom5.1.1to5.4.0. - Added
package.jsonoverridesto force patched versions ofserialize-javascriptanddiff. - Updated
package-lock.jsonto reflect the new dependency graph; also includes a small proposed VS Code typings update.
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 |
Updates JSDoc/parameter naming for a proposed VS Code chat sessions provider API. |
package.json |
Updates terser-webpack-plugin and adds overrides for vulnerable transitive deps. |
package-lock.json |
Lockfile regeneration reflecting the dependency/override changes (incl. diff/serialize-javascript/terser* updates). |
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>
mjbvz
previously approved these changes
Mar 18, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
|
@copilot install dependencies again to fix build |
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Contributor
Author
Done — ran |
rzhao271
approved these changes
Mar 18, 2026
Contributor
|
Closing and trying again. |
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
terser-webpack-pluginfrom5.1.1to5.4.0(fixesserialize-javascriptvulnerability in its dependency tree)overridesinpackage.jsonto force a fixed sub-dependency version:serialize-javascript@7.0.4(fixes GHSA-5c6j-r48x-rmvq — RCE viaRegExp.flags/Date.prototype.toISOString(), was<=7.0.2)engines.node: ">=20"topackage.jsonto reflect the Node 20 requirement introduced byserialize-javascript@7.0.4Result
The remaining low-severity vulnerabilities are:
elliptic(GHSA-848j-6mx2-7j84) — no upstream patch; all versions are flaggeddiffviamocha(GHSA-73rr-hh4g-fpgx) — fixing this would require a breaking major version change to mocha💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.