Skip to content

fix(deps): update nanoid past denial-of-service advisory - #120368

Merged
steipete merged 1 commit into
mainfrom
codex/fix-nanoid-cve-2026-67213
Aug 7, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-nanoid-cve-2026-67213

Conversation

@steipete

@steipete steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where required CI and downstream exact-head deployments were blocked by the newly updated HIGH NanoID advisory GHSA-2v37-7h3g-55p8. The production lock graph resolved [email protected], whose custom generators can loop indefinitely for nonpositive sizes.

The reachable graph is @openclaw/qa-lab → @copilotkit/[email protected] → optional peer [email protected] → [email protected] → [email protected] → [email protected]. node-llama-cpp is unaffected here; it resolves the already-safe NanoID 5.x line.

Why This Change Was Made

The committed product lock now resolves PostCSS's declared nanoid@^3.3.16 range to 3.3.18. This version completes the advisory repair for the React Native async entrypoint that 3.3.17 missed, while retaining the same Node engine contract.

Because 3.3.18 is intentionally fresh, its exact reviewed version is admitted through minimumReleaseAgeExclude; the global 48-hour policy remains unchanged. This does not suppress the audit, reclassify runtime dependencies, or add a long-lived override.

User Impact

Required security CI can pass again, and supported NanoID 3.x generator entrypoints terminate for zero or negative sizes. There is no OpenClaw API or configuration change.

Evidence

  • Before: exact-main CI fb0812c857ffe409947296eebd30677fef4ec211 failed security-fast on NanoID 3.3.16: https://github.com/openclaw/openclaw/actions/runs/31221372962/job/93007745550
  • After: node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high reports no HIGH-or-higher production advisories.
  • After: pnpm audit --prod --audit-level=high exits 0 (remaining findings are below HIGH).
  • pnpm install --lockfile-only --frozen-lockfile --ignore-scripts accepts the lock unchanged and passes all 1,611 supply-chain policy entries.
  • pnpm deps:npm-lock:check validates all 95 transient npm package locks.
  • node scripts/run-vitest.mjs test/package-manager-config.test.ts test/scripts/pnpm-audit-prod.test.ts — 31/31 passed.
  • node scripts/run-vitest.mjs test/scripts/transitive-manifest-risk-report.test.ts — 10/10 passed.
  • pnpm format:check --no-error-on-unmatched-pattern -- pnpm-lock.yaml pnpm-workspace.yaml and git diff --check pass.
  • Final structured autoreview: clean, no accepted/actionable findings (patch is correct, confidence 0.99).
  • Registry integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==.
  • Registry gitHead is 9ad98052b316c5e707f8098ace509d2ae165e54d, matching the inspected upstream release commit: ai/nanoid@9ad9805
  • The inspected 3.3.17 → 3.3.18 package delta is limited to the missing async/index.native.js nonpositive-size guard plus README/release metadata.

AI-assisted: yes (Codex). I understand and reviewed the dependency graph, upstream contract, and exact lock/config changes.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 7, 2026
@steipete steipete self-assigned this Aug 7, 2026
@steipete
steipete marked this pull request as ready for review August 7, 2026 22:16
@steipete
steipete requested a review from a team as a code owner August 7, 2026 22:16
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 7, 2026
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: e86e3cf69a69ffcf2ec5e1ee47e69e4a3b04c2f8
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@steipete

steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Coordinator authorization note: this dependency change is approved under the operator's standing directive as the smallest critical main-owned blocker fix — a patch-level bump of nanoid (3.3.16 → 3.3.18) past a denial-of-service advisory that is currently failing CI repo-wide, plus the standard exact-pinned minimumReleaseAgeExclude entry for the patched version. No other dependency surface is touched. Landing to restore green main.

@steipete
steipete merged commit e8da400 into main Aug 7, 2026
140 checks passed
@steipete
steipete deleted the codex/fix-nanoid-cve-2026-67213 branch August 7, 2026 22:36
@steipete

steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Applied the exact-head ClawSweeper rank-up moves for e86e3cf69a69ffcf2ec5e1ee47e69e4a3b04c2f8:

  • Verified the fresh registry artifact independently: [email protected] has integrity sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w== and npm gitHead 9ad98052b316c5e707f8098ace509d2ae165e54d, matching the inspected upstream release commit.
  • Compared the published 3.3.17 and 3.3.18 tarballs directly. The code delta completes the CVE repair by adding the missing nonpositive-size guard to async/index.native.js; other changes are README/release metadata. The Node engine contract is unchanged.
  • Confirmed PostCSS 8.5.23 declares nanoid@^3.3.16, so 3.3.18 is compatible without an override.
  • Exact-head required CI is green: run 31223207580, aggregate gate. security-fast and check-npm-lock both passed.
  • Frozen-lock verification accepts all 1,611 supply-chain policy entries unchanged; both HIGH-level production audits pass; focused package-policy/audit tests pass 31/31 and transitive-manifest risk tests pass 10/10.

The reviewed head is unchanged, so no redundant re-review was requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant