Repository navigation
chore(deps): resolve dompurify and ip-address vulnerabilities - #579
Merged
Merged
Conversation
- dompurify 3.4.16 -> 3.4.17 (lockfile-only): GHSA-cg2g-xh64-v4q7, GHSA-mrv2-3pqr-j5jr, GHSA-c6gr-qvv4-5v3f. mermaid declares ^3.3.3 and no override pins dompurify. - ip-address override 10.7.3 -> 10.7.4: GHSA-rxp7-6hxx-x8q5. The exact override is what holds the tree on 10.7.3, and build.ts propagates it into the shipped dist/sql-lsp-modules install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CqyiyR2czV5oi4Y4bu76FS
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #579 +/- ##
=====================================
Coverage 38% 38%
=====================================
Files 822 822
Lines 41098 41098
Branches 9044 9044
=====================================
Hits 15622 15622
Misses 23404 23404
Partials 2072 2072 🚀 New features to boost your workflow:
|
tkislan
marked this pull request as ready for review
October 22, 2026 20:38
dinohamzic
approved these changes
Oct 23, 2026
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.
npx better-npm-audit audit(Audit - All) and--production(Audit - Production) were failing onmain(6733738) with 4 new advisories across 2 packages, all published after #578 was opened.Each package was assessed separately against the decision ladder used by earlier audit fixes (#551, #578):
.nsprcexception only if no patched release exists.Neither package is a direct dependency, so rung 1 does not apply.
Decisions
The existing
.nsprcexceptions (braces, elliptic, sprintf-js) are unchanged.Details
dompurify: lockfile-only
mermaid@11.16.1, which declaresdompurify: ^3.3.3. That range admits 3.4.17, the first patched version for all three advisories."dompurify"key. The"mermaid": "11.16.1"override pins mermaid only.@vscode/jupyter-ipywidgets8→@jupyterlab/notebook→@jupyterlab/markedparser-extension→@jupyterlab/mermaid→mermaid→dompurify. Nodist/**/*.esbuild.meta.jsonhas a dompurify or mermaid input, nothing insrc/imports either, and the prebuilt ipywidgets8 renderer bundle copied todist/renderers/contains no DOMPurify."node_modules/dompurify": { - "version": "3.4.16", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.16.tgz", - "integrity": "sha512-sqo+pNp3qRhCIpbgRi1y8Tgk27Bo2Ry7w0dC1NBeNTdZChWjz9Xb/KOoZbRP/R6pQZ80Qw8YhXw13hWWBbMRnQ==", + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.17.tgz", + "integrity": "sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==",ip-address: bump the exact override
overridesalready pins"ip-address": "10.7.3", and that pin is the only thing holding the tree on the vulnerable version:socks@2.8.7declares^10.0.1.build/esbuild/build.ts(sqlLspOverridesToPropagate) copies it into the isolateddist/sql-lsp-modulesinstall, which is shipped in the VSIX, and the build throws if the key is missing. This matches chore(deps): resolve dependency vulnerabilities (2026-10-06) #551, which bumped the same key from 10.4.0 to 10.7.3.bindings, so the code path is not reachable. The fix still changes shipped files.Address6zone-identifier regex withindexOfand keeps the same behaviour.RE_ZONE_STRINGis deprecated but still exported, and dependencies and engines are unchanged."node_modules/ip-address": { - "version": "10.7.3", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.3.tgz", - "integrity": "sha512-A1kdq/tSb5QjvKvAMgIoEvDBIgL7qaqVP/jkvSwYYRZ9iEzvPpopxp2wQfu3SuZRHtpHNxMn8Fs0bS+gf5Xmwg==", + "version": "10.7.4", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.4.tgz", + "integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==",There is no other lockfile churn.
Verification
Run locally on Node 22.21.1 / npm 10.9.4 after
npm ci:npx better-npm-audit auditandnpx better-npm-audit audit --production: both exit 0 ("All good!"). Before this change, both failed on advisories 1242880–1242883.npm run esbuild-all: passes.dist/sql-lsp-modules/package.jsonoverrides now carryip-address: 10.7.4, and the installed copy there is 10.7.4.npm run typecheck,npm run lint(the 27 warnings that were already there, none new),npm run formatandnpm run check-licenses: all pass.npm test: 2879 passing, 0 failing, 239 pending.🤖 Generated with Claude Code
https://claude.ai/code/session_01CqyiyR2czV5oi4Y4bu76FS
Summary by CodeRabbit