Skip to content

fix(deps): patch Snyk-reported npm vulnerabilities#1085

Open
digiserg wants to merge 3 commits into
mainfrom
fix/snyk-npm-vulnerabilities
Open

fix(deps): patch Snyk-reported npm vulnerabilities#1085
digiserg wants to merge 3 commits into
mainfrom
fix/snyk-npm-vulnerabilities

Conversation

@digiserg

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps axios, systeminformation, uuid to patched versions.
  • Adds targeted overrides for transitive vulnerable deps (tar, dompurify, form-data, ip-address, undici, brace-expansion, js-yaml) pulled in by electron-builder, monaco-editor, eslint/jest tooling, etc.
  • Resolves 64 of 66 vulnerable dependency paths from Snyk. npm audit now reports 0 vulnerabilities.
  • Two mediums left as accepted risk (no compatible fix without breaking runtime behavior):
    • js-yaml 3.15.0 under front-matter (CVE-2026-53550, ReDoS) — fix only ships in js-yaml 4.x, which drops the safeLoad() API front-matter calls at runtime.
    • zxcvbn 4.4.2 (ReDoS) — unmaintained, no fixed version published.

Closes #1084

Test plan

  • npm install — native module rebuild succeeds, no resolution errors
  • npm audit — 0 vulnerabilities
  • snyk test --org=digiserg — down from 66 to 2 vulnerable paths (both accepted risk, documented above)
  • npm run test:ci — 250 tests pass; 1 suite fails on missing renderer/js/funcs.js, a pre-existing unrelated issue

Assisted-by: Claude Code

Bump axios, systeminformation, uuid to patched releases and add
targeted npm overrides for transitive deps (tar, dompurify,
form-data, ip-address, undici, brace-expansion, js-yaml) pulled in
by electron-builder, monaco-editor, eslint/jest tooling, etc.

Resolves 64 of 66 vulnerable dependency paths reported at
https://app.snyk.io/org/digiserg/project/fcd5a606-d93e-410f-91db-0804337aa027
(closes #1084). Two mediums remain as accepted risk, no compatible
fix without breaking runtime behavior:
- js-yaml 3.15.0 under front-matter (CVE-2026-53550, ReDoS) - fix
  only ships in js-yaml 4.x, which drops the safeLoad() API
  front-matter calls at runtime.
- zxcvbn 4.4.2 (ReDoS) - package is unmaintained, no fixed version
  published.

npm audit now reports 0 vulnerabilities; full test suite passes
except one pre-existing, unrelated failure (missing funcs.js).

Signed-off-by: Sergio Rua <sergio@axonops.com>
@digiserg
digiserg requested a review from millerjp as a code owner July 17, 2026 07:51
digiserg added 2 commits July 20, 2026 10:07
@electron/rebuild override targeted undici directly, but only its
nested node-gyp depends on undici — the override matched nothing and
was silently dropped. node-gyp then resolved the hoisted root
undici@8.7.0 (requires Node >=22.19), crashing macOS CI runners on
Node 20.19.2 with "webidl.util.markAsUncloneable is not a function".

Nest the override under node-gyp so it actually applies, and commit
package-lock.json (previously gitignored) so CI installs are
reproducible instead of re-resolving overrides fresh on every run.

Signed-off-by: Sergio Rua <sergio@axonops.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security: 52 Snyk vulnerabilities in npm deps (2 critical, 25 high)

2 participants