Repository navigation
fix(deps): extend and add temporary npm audit exceptions and update cross-spawn - #102
Merged
Merged
Conversation
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>
9 of 22 tasks
…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
marked this pull request as ready for review
December 3, 2026 09:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The ten
reviewed-archive-graphnpm 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:cross-spawnin the root lockfile.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
cross-spawnadvisory.Changes
Commit 1 (9276a02): extend the expired exceptions and update the root lockfile
ci/npm-audit-exceptions.json:@modelcontextprotocol/sdk, fourundici, and onezodentries now expire on 2026-12-17.@azure/msal-nodeentry expires on 2026-12-31.openclaw-npm-remediation.mtshas no entry foropenclaw@2026.9.2or@openclaw/msteams@2026.9.2.msal-nodecontrol is marked as pending verification. The earlier egress claim was removed because it was not verified.package-lock.json(root):cross-spawn7.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.mtson commit 1, with no additions or omissions.cross-spawn7.0.6 (critical)ci/reviewed-npm-audit.json, then the lockfiles move to 7.1.0 or laterws8.21.3ws8.23.0 or later override; for the archive graph, the OpenClaw upgrade or a remediation entrytar7.5.21tar8.0.2 or latertar7.5.22Why accept the risk instead of upgrading now:
tar8.0.2 or later is a major upgrade that OpenClaw 2026.9.2 does not declare.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.2dist. Exploitation preconditions are marked "Pending verification".Limits of these entries:
tarandws, the compensating controls only describe where the package is loaded. They do not reduce the risk.cross-spawn, the advisory affects only Windows batch-file spawning, and the images build fromnode:24.22.1-trixie-slim(Debian Linux).trackingIssuestayshttps://github.com/NVIDIA/NemoClaw/pull/13513because 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
reviewed-npm-auditreadsci/npm-audit-exceptions.jsonfrom the PR base commit (pr.yaml). On this PR it still sees the expired file, so the check is expected to stay red. A green result needs this PR merged, and merging needs explicit owner approval.cross-spawnwith this change; see Verification for the local check.PR build (Deep Agents Code)failed before this PR as well, on fix(hermes-01x): keep cron/ usable by the gateway in the tools image #91, fix(images): install libexpat 2.9.0 in the Hermes 0.1.x base #96, ci(images): build the Hermes 0.1.x images without publishing them #99, and fix(deps): extend npm audit exceptions and update cross-spawn #100. Its cause is not investigated here.Type of Change
Quality Gates
test/reviewed-npm-audit.test.tsparses the checked-in exceptions file. On the base commit it fails at module load withnpm 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.Documentation Writer Review
no-docs-neededci/npm-audit-exceptions.jsonand the rootpackage-lock.json. A search ofdocs/and other Markdown found no page that lists these entries, dates, or versions. The reviewer reported non-blocking findings that were not applied:trackingIssuemismatch (stated above).agents/openclaw/dependency-review.md:37and:80say the registry is empty, which was already stale before this PR.DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHub. Both commits were checked with the GitHub commits API:verified: true,reason: valid.pre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpx vitest run --project integration test/reviewed-npm-audit.test.ts: 37 of 37 passed.npm run source-shape:check: passed.scripts/audit-reviewed-npm-graph.mtswith Node 24.22.1 and npm 12.0.2: exit 0. nemoclaw-cli and wechat-runtime are clean. The other four graphs reportaccepted-exceptionswith no unaccepted finding at or above high. All 49 entries matched.reviewed-npm-audit.mts --graph mcporter-runtimewith this PR's exceptions file:accepted-exceptions(GHSA-ghv9-86vm-4v8m). The same command with the base file fails on the expired entries.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: not runnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Derek Hsu derekhsu@hotmail.com
🤖 Generated with Claude Code