Skip to content

fix(deps): patch known CVEs in axios, dompurify, nanoid, postcss - #8

Merged
yetone merged 1 commit into
yetone:mainfrom
Svector-anu:security/bump-axios-dompurify-nanoid-postcss
Aug 18, 2026
Merged

fix(deps): patch known CVEs in axios, dompurify, nanoid, postcss#8
yetone merged 1 commit into
yetone:mainfrom
Svector-anu:security/bump-axios-dompurify-nanoid-postcss

Conversation

@Svector-anu

Copy link
Copy Markdown
Contributor

Summary

osv-scanner flagged several dependencies with known advisories. This PR patches the four that are safe, semver-compatible, lockfile-only bumps — no breaking API changes, no package.json edits needed.

Package Before After Advisories
axios 1.16.0 1.19.0 10, incl. GHSA-mwf2-3pr3-8698, GHSA-xj6q-8x83-jv6g
dompurify 3.4.3 3.4.13 10, incl. GHSA-x4vx-rjvf-j5p4 (prod dependency — sanitizes untrusted HTML)
nanoid 3.3.12 3.3.18 GHSA-2v37-7h3g-55p8, GHSA-28wg-ghj8-5hjv
postcss 8.5.14 8.5.26 GHSA-fxqj-rqcc-2cmp, GHSA-r28c-9q8g-f849

Verification

  • Reproduced locally: n/a (dependency-scan findings, not code-level repros)
  • Method: osv-scanner --recursive . before/after
  • Before: all four flagged
  • After: osv-scanner reports zero findings for these four packages

Scope note — electron NOT included

This scan also flagged electron@33.4.11 against 33 separate advisories, but every fix requires jumping to Electron 38.8.6+ (a 5-major-version bump). That's a real app-level upgrade with breaking-change risk, not a mechanical dependency PR — left out intentionally rather than auto-bumped blind. Worth tracking separately.

A larger set of lower-severity / dev-tooling-only findings (esbuild, tar, ws, undici, shell-quote, protobufjs, ip-address, qs, brace-expansion, builder-util-runtime, app-builder-lib, @babel/core, @opentelemetry/core, body-parser, sharp) was also observed but not included here to keep this PR reviewable — happy to follow up if useful.

Detected by

osv-scanner (dependency vulnerability scan).

- axios 1.16.0 -> 1.19.0 (10 advisories, incl. GHSA-mwf2-3pr3-8698, GHSA-xj6q-8x83-jv6g)
- dompurify 3.4.3 -> 3.4.13 (10 advisories, incl. GHSA-x4vx-rjvf-j5p4) — production
  dependency, sanitizes untrusted HTML in the renderer
- nanoid 3.3.12 -> 3.3.18 (GHSA-2v37-7h3g-55p8, GHSA-28wg-ghj8-5hjv)
- postcss 8.5.14 -> 8.5.26 (GHSA-fxqj-rqcc-2cmp, GHSA-r28c-9q8g-f849)

Lockfile-only; all four resolve within existing declared ranges, no
package.json changes. Detected by osv-scanner.

Scope note: this scan also flagged electron@33.4.11 against 33 GHSAs, but
every fix requires jumping to Electron 38.8.6+ (a 5-major-version bump) —
too large a change to land as a mechanical dependency PR without full app
rebuild/regression testing, so it's intentionally left for the maintainer
to schedule separately rather than auto-bumped here.
@yetone
yetone merged commit eb45bf7 into yetone:main Aug 18, 2026
6 checks passed
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.

2 participants