Skip to content

Fix 14 open Dependabot alerts (tar, adm-zip, fast-uri) - #34

Merged
Giorgio Ughini (GiorgioUghini) merged 1 commit into
mainfrom
adilei-fix-dependabot-alerts
Aug 3, 2026
Merged

Giorgio Ughini (GiorgioUghini) merged 1 commit into
mainfrom
adilei-fix-dependabot-alerts

Conversation

@adilei

@adilei adilei commented Aug 2, 2026 •

Copy link
Copy Markdown
Collaborator

What this does

Resolves 14 of the open Dependabot alerts by bumping a direct devDependency and adding npm overrides that force every transitive copy onto a patched release.

Package Alerts Resolution
tar 12 overrides → all copies collapse to 7.5.22
adm-zip 1 devDependency ^0.5.18 → ^0.6.0 (+ override) → 0.6.0
fast-uri 1 overrides → 3.1.4 (under ajv)

Why overrides (not just a top-level bump)

The tar advisory ranges have no lower bound (e.g. <= 7.5.18, < 7.5.7). The real trigger was the nested 6.2.1 copies under node-gyp / @mapbox/node-pre-gyp, not the top-level 7.5.20. A global tar override collapses every copy to 7.5.22. This is safe: @mapbox/node-pre-gyp@2 and node-gyp@11+ already adopted tar ^7 upstream, and the remaining 6.x consumers are all build-time/optional.

adm-zip 0.6.0 is a security patch that keeps the getEntry/getData/extractAllTo/extractEntryTo API used by scripts/compliance.mjs and the onnxruntime-node install script.

Verification

  • npm run typecheck ✅
  • npm test → 58/58 ✅
  • npm run compliance:licenses ✅
  • Confirmed no vulnerable copies remain in the lockfile.

Not included — sharp (tracked separately)

The 15th alert (sharp, high) is intentionally left out. Bumping sharp to 0.35.x also bumps bundled libvips 1.2.4 → 1.3.2, which trips the deliberate license-compliance review gate (third_party/compliance-policy.json + RELEASING.md) and requires human review of the THIRD-PARTY-NOTICES.md and ~40 source-material hashes. Tracked in a separate issue so it gets the required review.

Note

The brace-expansion/minimatch npm-audit noise is out of scope — those advisories are auto-dismissed in Dependabot and have no published patched 1.x/2.x release.

Resolve the tar, adm-zip, and fast-uri Dependabot alerts by bumping the
direct adm-zip devDependency and adding npm `overrides` that force every
transitive copy onto a patched release:

- tar: all copies collapse to 7.5.22 (advisory ranges have no lower
  bound, so the nested 6.2.1 copies under node-gyp / node-pre-gyp were
  the real trigger; upstream already moved to tar ^7).
- adm-zip: 0.6.0 (CVE fix; API-compatible getEntry/getData/extractAllTo).
- fast-uri: 3.1.4 (under ajv).

sharp is intentionally left at 0.34.5 and tracked separately: bumping it
to 0.35.x also bumps bundled libvips (1.2.4 -> 1.3.2), which trips the
license-compliance review gate and needs human review of THIRD-PARTY
notices and source-material hashes.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 20e90862-851f-454d-ac9a-a22df286f4e2
@adilei
adilei force-pushed the adilei-fix-dependabot-alerts branch from 3fdffcf to a9b55d1 Compare August 2, 2026 18:00
@adilei adilei changed the title Fix 15 open Dependabot alerts (tar, sharp, adm-zip, fast-uri) Fix 14 open Dependabot alerts (tar, adm-zip, fast-uri) Aug 2, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is fine

@GiorgioUghini
Giorgio Ughini (GiorgioUghini) merged commit f966f31 into main Aug 3, 2026
5 checks passed
@GiorgioUghini
Giorgio Ughini (GiorgioUghini) deleted the adilei-fix-dependabot-alerts branch August 3, 2026 07:27
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