Skip to content

fix(deps): extend npm audit exceptions and update cross-spawn - #100

Closed
derekhsu wants to merge 1 commit into
feat/image-only-clifrom
fix/97-npm-audit-exceptions-extend
Closed

derekhsu wants to merge 1 commit into
feat/image-only-clifrom
fix/97-npm-audit-exceptions-extend

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, so reviewed-npm-audit fails on every PR. This extends them with a re-reviewed rationale and updates cross-spawn, which now has a critical advisory in the NemoClaw CLI lockfile.

Related Issue

Refs #97. Refs #77: the picomatch advisory in #77 is withdrawn, and this PR clears the cross-spawn critical advisory that replaced it. Do not close #97; the OpenClaw upgrade tracked in #14 retires the entries.

Changes

  • ci/npm-audit-exceptions.json: the four @modelcontextprotocol/sdk, four undici, and one zod entry now expire on 2026-12-17. The @azure/msal-node entry expires on 2026-12-31 because no published OpenClaw release pins @azure/msal-node 7.1.0 or later. The rationale names the fixed version and the real fix path, and each entry adds a compensating-control note. trackingIssue values are unchanged because the contract requires NVIDIA/NemoClaw URLs.
  • package-lock.json: cross-spawn 7.0.6 to 7.1.2 (GHSA-ghv9-86vm-4v8m, fixed in 7.1.0). Lockfile only.

No new abstraction, configuration, or fallback is added.

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 (37 tests) covers the exception contract; readAuditExceptionRegistry also parses the new file without error.
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: CI dependency configuration 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: pending
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

The audit job reads ci/npm-audit-exceptions.json from the base commit, so reviewed-npm-audit on this PR still sees the expired file and stays red until this merges. This needs a maintainer merge with that check waived.

Documentation Writer Review

  • Documentation writer subagent reviewed the completed changes
  • Result: no-docs-needed
  • Evidence: no documentation path changed; CI configuration only. The reviewer subagent has not run on this PR.
  • Agent: Claude Code

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • 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 passed 37 of 37. Local npm audit --omit=dev --package-lock-only reports high=0, critical=0.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result:
  • 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 and failed
reviewed-npm-audit on every PR. Extend them with a re-reviewed rationale:
the SDK, undici and zod entries until 2026-12-17 to force the OpenClaw
upgrade decision, and the msal-node entry until 2026-12-31 because no
published OpenClaw release pins a fixed version.

Update cross-spawn 7.0.6 to 7.1.2 in the NemoClaw CLI lockfile to clear
GHSA-ghv9-86vm-4v8m.

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

derekhsu commented Dec 3, 2026

Copy link
Copy Markdown
Owner Author

Superseded by draft PR #102, which rewrites the exception rationale to match the repository and records the remaining audit findings in #101. Closing this PR; the branch is kept.

@derekhsu derekhsu closed this Dec 3, 2026
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.

fix(deps): npm audit 的 10 筆暫時風險接受例外在 2026-11-25 到期,所有 PR 的 checks 失敗

1 participant