Skip to content

fix(deps): resolve Dependabot HIGH/MODERATE vulnerability alerts - #395

Draft
mtsolakiszen wants to merge 1 commit into
masterfrom
mtsolakis/bump-dependency-vulns
Draft

fix(deps): resolve Dependabot HIGH/MODERATE vulnerability alerts#395
mtsolakiszen wants to merge 1 commit into
masterfrom
mtsolakis/bump-dependency-vulns

Conversation

@mtsolakiszen

@mtsolakiszen mtsolakiszen commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description

Resolves the zcli-relevant Dependabot alerts:

  • CVE-2026-39244 (adm-zip, HIGH, Warning: themes:preview is not a zcli command #177/Recommended Version of Yarn? #178) — bumped adm-zip 0.5.10 → 0.5.18 in zcli-apps and zcli-connectors. Patch-line fix for a DoS via crafted ZIP uncompressed-size header; no breaking API changes between these versions.
  • CVE-2026-41907 (uuid, MODERATE, zcli apps:update still broken #160) — removed the uuid/@types/uuid dependency from zcli-apps and replaced uuidV4() with Node's built-in crypto.randomUUID(). The CVE affects v3/v5/v6 buffer bounds checks, not v4 (the only function this codebase used), but the fixed release (uuid@14) is ESM-only and would break this project's CommonJS build, so removing the dependency entirely was the simpler and lower-risk fix. crypto.randomUUID() requires Node ≥14.17, well below this project's declared engines.node: >=20.17.0.

The other alerts in the original batch (v2_repl_app, marketplace_payment_service) do not apply — those packages aren't present in this repo's dependency tree.

Detail

  • packages/zcli-apps/src/utils/uuid.ts: swapped uuid.v4() for crypto.randomUUID().
  • packages/zcli-apps/package.json, packages/zcli-connectors/package.json, yarn.lock: dependency bumps/removals.
  • Verified with yarn test (268 passing) and tsc type-check on zcli-apps, both on Node v20.20.2 per .nvmrc.

Checklist

  • 💂‍♂️ includes new unit and functional tests

Bumps adm-zip to 0.5.18 (CVE-2026-39244, zcli-apps/zcli-connectors) and
removes the uuid dependency in zcli-apps in favor of Node's built-in
crypto.randomUUID(), which sidesteps CVE-2026-41907 entirely (the CVE
affects v3/v5/v6, not v4, but the fixed release is ESM-only and would
break this project's CommonJS build).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.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.

1 participant