Skip to content

fix(deps): override adm-zip to ^0.6.0 (clears GHSA-xcpc-8h2w-3j85, high) - #19

Closed
tashaamanda wants to merge 2 commits into
mainfrom
chore/adm-zip-0.6-override
Closed

tashaamanda wants to merge 2 commits into
mainfrom
chore/adm-zip-0.6-override

Conversation

@tashaamanda

Copy link
Copy Markdown
Contributor

What

Force the transitive dependency adm-zip up to the patched ^0.6.0 via an overrides entry.

Why

adm-zip <0.6.0 — pulled in through @huggingface/transformers → onnxruntime-node — is vulnerable to GHSA-xcpc-8h2w-3j85 (crafted ZIP triggers a 4GB memory allocation, high). onnxruntime-node pins adm-zip ^0.5.16, so it can't be bumped in place; npm audit fix --force "resolves" it only by downgrading @huggingface/transformers 4.2.0 → 3.8.1 (a breaking major that changes the local-embeddings path). An overrides entry forces the patched 0.6.0 without that downgrade.

Validation

  • npm audit0 vulnerabilities (was 3 high)
  • lockfile resolves adm-zip solely to 0.6.0
  • API-compat: onnxruntime-node uses only new AdmZip() + extractEntryTo(), both stable in 0.6.0
  • Two-file diff: package.json (+1 override) and package-lock.json (adm-zip 0.5.17 → 0.6.0)

Scope

Deliberately excludes the separate sharp / Node-26 install issue (preexisting upstream; CI pins Node ≤22). The open Dependabot PRs (#17, #18, #13, #11) should rebase on top of this.

🤖 Generated with Claude Code

tashaamanda and others added 2 commits July 20, 2026 12:28
…igh)

adm-zip <0.6.0 (pulled transitively via @huggingface/transformers ->
onnxruntime-node) is vulnerable to a crafted-ZIP 4GB memory allocation
(GHSA-xcpc-8h2w-3j85, high). onnxruntime-node pins adm-zip ^0.5.16, so an
overrides entry forces the patched 0.6.0 without the breaking
@huggingface/transformers downgrade that `npm audit fix --force` proposes.

Validation: npm audit reports 0 vulnerabilities; the lockfile resolves
adm-zip solely to 0.6.0; onnxruntime-node uses only new AdmZip() and
extractEntryTo(), both stable in 0.6.0. Two-file change (package.json +
package-lock.json).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tashaamanda

Copy link
Copy Markdown
Contributor Author

Superseded — reopening a clean PR.

@tashaamanda
tashaamanda deleted the chore/adm-zip-0.6-override branch July 20, 2026 10:41
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