Skip to content

Commit 75097e8

Browse files
Update NPM packages and override transitive vulnerabilities (#5537)
Routine dependency refresh to stay current and clear `npm audit`. The extension's Azure Artifacts token had expired, so I refreshed it via the documented `artifacts-npm-credprovider` (registry-only temp config, the committed `.npmrc` is untouched). Direct bumps within their existing semver ranges: - `semver` 7.8.0 -> 7.8.4 - `vscode-languageserver-protocol` 3.17.5 -> 3.18.0 - `@vscode/vsce` 3.9.1 -> 3.9.2 - `esbuild` 0.28.0 -> 0.28.1 (also clears a dev-server advisory) - `@types/node` 22.19.19 -> 22.19.21 (stays on the Node 22 major) - `eslint` 10.3.0 -> 10.5.0 and `typescript-eslint` 8.59.3 -> 8.61.1 (ESLint group bumped together, no new lint warnings) - `prettier` 3.8.3 -> 3.8.4 For the eight audited vulnerabilities (all transitive, mostly under `@vscode/vsce`), I added `overrides` rather than `npm audit fix --force` so our own packages don't get downgraded: `@nevware21/ts-utils`, `form-data`, `js-yaml`, `markdown-it`, `qs`, `tmp`, and `undici`. The `undici` pin is `^7.28.0`, the minimum fix that still satisfies `cheerio`'s `^7.19.0` range. I also bumped the existing `serialize-javascript` override to `^7.0.6`. I checked whether the two pre-existing overrides are still needed by removing them and re-auditing: both are. Dropping them lets `mocha` pull a vulnerable `diff` (jsdiff DoS) and `serialize-javascript` (RCE), so `diff` and `serialize-javascript` stay. Held back deliberately as not "safe" simple bumps: `vscode-languageclient` 9 -> 10 (coupled to PSES), `@vscode/test-electron` 2 -> 3 (test harness; integration tests can't run in this environment), `untildify` 4 -> 6 (ESM-only), and the `@types/vscode` / `engines.vscode` pair (bumping the engine is its own change per `docs/development.md`). `npm run compile`, `npm run lint`, `npm run format`, and `npm audit` (0 vulnerabilities) all pass. Drafted by Copilot (Claude Opus 4.8). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 58bf4f7 commit 75097e8

2 files changed

Lines changed: 316 additions & 293 deletions

File tree

0 commit comments

Comments
 (0)