Skip to content

fix(deps): extend and add temporary npm audit exceptions and update cross-spawn - #102

Merged
derekhsu merged 2 commits into
feat/image-only-clifrom
fix/97-audit-exceptions-plan-a
Dec 3, 2026
Merged

derekhsu merged 2 commits into
feat/image-only-clifrom
fix/97-audit-exceptions-plan-a

Conversation

@derekhsu

@derekhsu derekhsu commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

The ten reviewed-archive-graph npm audit exceptions expired on 2026-11-25. New tar, ws, and cross-spawn advisories published on 2026-12-01 and 2026-12-02 also block the reviewed npm audit. This PR does three things:

  • It extends the ten expired exceptions and rewrites their rationale to match the repository.
  • It updates cross-spawn in the root lockfile.
  • It adds 39 temporary risk acceptances for the new findings.

Scope grew after the first commit: the second commit is a risk acceptance, not a fix, and it needs explicit owner approval before merge.

Related Issue

Changes

Commit 1 (9276a02): extend the expired exceptions and update the root lockfile

  • ci/npm-audit-exceptions.json:
    • Expiry dates:
      • The four @modelcontextprotocol/sdk, four undici, and one zod entries now expire on 2026-12-17.
      • The @azure/msal-node entry expires on 2026-12-31.
    • Rationale: it no longer claims OpenClaw 2026.9.5 fixed these versions. It now states three things:
      • The reviewed archive graph installs the published 2026.9.2 tarballs without the runtime overrides.
      • openclaw-npm-remediation.mts has no entry for openclaw@2026.9.2 or @openclaw/msteams@2026.9.2.
      • Each entry's retirement condition. These conditions are based on declared dependencies only.
    • Compensating controls cite the openclaw-runtime lockfile overrides. The msal-node control is marked as pending verification. The earlier egress claim was removed because it was not verified.
  • package-lock.json (root): cross-spawn 7.0.6 to 7.1.2 (GHSA-ghv9-86vm-4v8m).

Commit 2 (dd4d796): temporary risk acceptances, 39 entries. The entries match the unaccepted findings from a local run of scripts/audit-reviewed-npm-graph.mts on commit 1, with no additions or omissions.

Package Graph Count Expires Retirement condition
cross-spawn 7.0.6 (critical) openclaw-runtime, mcporter-runtime, mcp-tool-discovery-runtime lockfiles 3 2026-12-17 A PR first updates the trusted lock SHA-256 values in ci/reviewed-npm-audit.json, then the lockfiles move to 7.1.0 or later
ws 8.21.3 reviewed archive graph and openclaw-runtime lockfile 2 2026-12-17 Same trusted-hash PR and a ws 8.23.0 or later override; for the archive graph, the OpenClaw upgrade or a remediation entry
tar 7.5.21 openclaw-runtime lockfile 15 2026-12-24 The OpenClaw upgrade (#14) to a release that declares tar 8.0.2 or later
tar 7.5.22 reviewed archive graph 19 2026-12-31 Same as above

Why accept the risk instead of upgrading now:

  • The tar 7.x line fixes only one of the 19 advisories. tar 8.0.2 or later is a major upgrade that OpenClaw 2026.9.2 does not declare.
  • Any runtime lockfile change must first update trusted lock hashes that CI reads from the base commit.

Each entry records the advisory, its first fixed version from the GitHub Advisory Database, and the import sites found by a static grep of the openclaw@2026.9.2 dist. Exploitation preconditions are marked "Pending verification".

Limits of these entries:

  • For tar and ws, the compensating controls only describe where the package is loaded. They do not reduce the risk.
  • For cross-spawn, the advisory affects only Windows batch-file spawning, and the images build from node:24.22.1-trixie-slim (Debian Linux).
  • trackingIssue stays https://github.com/NVIDIA/NemoClaw/pull/13513 because the registry contract accepts only NVIDIA/NemoClaw URLs. That PR is unrelated, so each rationale names fix(deps): reviewed-npm-audit 的 runtime lock 與 archive graph 仍有 tar、ws 與 cross-spawn 弱點 #101 as the actual tracking issue.

Expected CI result

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification: test/reviewed-npm-audit.test.ts parses the checked-in exceptions file. On the base commit it fails at module load with npm audit exception 1 expired on 2026-11-25. With this change it passes 37 of 37. The full audit run below checks the 39 new entries against real audit output.
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: CI exception data and a root lockfile update only. No user-visible surface changes.
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: not done; the risk acceptance needs owner approval
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Documentation Writer Review

  • Documentation writer subagent reviewed the completed changes
  • Result: no-docs-needed
  • Evidence: The diff changes only ci/npm-audit-exceptions.json and the root package-lock.json. A search of docs/ and other Markdown found no page that lists these entries, dates, or versions. The reviewer reported non-blocking findings that were not applied:
    • "base pull request" is not a repository term.
    • The entries mix "lock" and "lockfile".
    • Some tar and ws sentences run 30 to 40 words.
    • The compensating controls do not reduce risk (stated above).
    • The trackingIssue mismatch (stated above).
    • Outside this PR: agents/openclaw/dependency-review.md:37 and :80 say the registry is empty, which was already stale before this PR.
  • Agent: Claude Code

DGX Station Hardware Evidence

  • Tested on DGX Station
  • Tested commit:
  • Station profile/scenario:
  • Result:
  • Supporting evidence:

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub. Both commits were checked with the GitHub commits API: verified: true, reason: valid.
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run validate:pr passed after refreshing origin/main when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification:
    • npx vitest run --project integration test/reviewed-npm-audit.test.ts: 37 of 37 passed.
    • npm run source-shape:check: passed.
    • Full scripts/audit-reviewed-npm-graph.mts with Node 24.22.1 and npm 12.0.2: exit 0. nemoclaw-cli and wechat-runtime are clean. The other four graphs report accepted-exceptions with no unaccepted finding at or above high. All 49 entries matched.
    • reviewed-npm-audit.mts --graph mcporter-runtime with this PR's exceptions file: accepted-exceptions (GHSA-ghv9-86vm-4v8m). The same command with the base file fails on the expired entries.
    • Commit 1 also ran the cli, integration, and e2e-support tests that reference the audit files: all passed.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result: not run
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Derek Hsu derekhsu@hotmail.com

🤖 Generated with Claude Code

The ten reviewed-archive-graph exceptions expired on 2026-11-25. Extend the
@modelcontextprotocol/sdk, undici and zod entries to 2026-12-17 and the
@azure/msal-node entry to 2026-12-31.

Rewrite the rationale to match the repository: OpenClaw 2026.9.5 does not fix
these versions, the reviewed archive graph installs the published 2026.9.2
tarballs without the runtime overrides, and openclaw-npm-remediation.mts has
no entry for openclaw or msteams 2026.9.2. Compensating controls now cite the
runtime lockfile overrides, and mark the msteams msal-node replacement as
pending verification.

Update cross-spawn 7.0.6 to 7.1.2 in the root lockfile for
GHSA-ghv9-86vm-4v8m.

Refs #97

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
…rily

Add 39 temporary risk acceptances for the findings that the reviewed npm
audit reports after the 2026-12-03 advisories, so every graph has no
unaccepted finding at or above high:

- cross-spawn 7.0.6 (GHSA-ghv9-86vm-4v8m) in the openclaw-runtime,
  mcporter-runtime, and mcp-tool-discovery-runtime lockfiles, until
  2026-12-17. Updating those lockfiles first needs a base pull request for
  the trusted lock SHA-256 values in ci/reviewed-npm-audit.json.
- ws 8.21.3 (GHSA-37g9-w4hg-h9qr) in the reviewed archive graph and the
  openclaw-runtime lockfile, until 2026-12-17.
- tar 7.5.21 in the openclaw-runtime lockfile (15 advisories) until
  2026-12-24, and tar 7.5.22 in the reviewed archive graph (19 advisories)
  until 2026-12-31. Clearing all of them needs tar 8.0.2 or later, which
  waits for the OpenClaw upgrade.

Each entry records the advisory, its first fixed version, the statically
found import sites, and its retirement condition, and marks exploitation
preconditions as pending verification.

Refs #101

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
@derekhsu derekhsu changed the title fix(deps): extend npm audit exceptions and update cross-spawn fix(deps): extend and add temporary npm audit exceptions and update cross-spawn Dec 3, 2026
@derekhsu
derekhsu marked this pull request as ready for review December 3, 2026 09:16
@derekhsu
derekhsu merged commit b015cec into feat/image-only-cli Dec 3, 2026
46 of 49 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.

1 participant