Skip to content

fix(deps): resolve critical cross-spawn command injection advisory - #93

Merged
swarnat merged 1 commit into
masterfrom
fix/issue-92-cross-spawn-audit
Dec 3, 2026
Merged

swarnat merged 1 commit into
masterfrom
fix/issue-92-cross-spawn-audit

Conversation

@swarnat

@swarnat swarnat commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Resolve the critical Windows batch-file command injection advisory GHSA-ghv9-86vm-4v8m by updating only ESLint's transitive development dependency cross-spawn from 7.0.6 to 7.1.0 within its existing ^7.0.6 range.
  • Keep all direct dependencies, shipped/runtime resolutions, existing js-beautify overrides and the Vite/Vitest/PHPStan Dependabot updates unchanged.
  • Document the fix under Unreleased in pages/Changelog.md.

Closes #92.

Verification

Actual local results (Node 26.12.1, npm 12.2.2):

  • Baseline npm audit --json: 1 critical, exit 1; shipped audit: 0 vulnerabilities, exit 0.
  • Updated npm audit --json and npm audit --omit=dev --json: 0 vulnerabilities, both exit 0. Independently repeated both audits with the same result.
  • npm ci, npm run lint, npm run typecheck, npm test, npm run test:coverage, npm run build: all exit 0.
  • Both Vitest runs: 436 tests, 50 files passed. Frontend coverage: 98.01% lines (3306/3373); existing coverage thresholds passed.
  • Full staged-diff static scan: no findings; fresh independent Codex review: passed: true, no security concerns or logic errors.
  • git diff --check: passed.

Scope and limitations

Only the cross-spawn lock entry and changelog changed; no new application code or artificial tests. Previous audit PR #76 was already merged and addressed different glob/minimatch chains.

PHP/Composer checks and PHP coverage could not run locally: Composer/vendor binaries and required PHP extensions/coverage driver were absent. Local WordPress/database and Chromium prerequisites for smoke/browser checks were absent. Hosted CI results are tracked separately; these local limitations are not claimed as passing checks.

Hosted CI and automated-review follow-up

For commit 9710ffb9597acbd1e025fe561edb2c39ae7733ff, all six active checks passed: frontend, PHP, documentation build, disposable-key release ZIP validation, SonarQube Cloud, and SonarCloud Code Analysis. Pages deployment was skipped as expected for a PR.

Hosted PHP evidence: 124 unit tests / 773 assertions; WordPress suite 155 tests / 2554 assertions with one optional-integration skip; isolated update suites 59 tests each (170 single-site and 179 multisite assertions). Full PHP line coverage: 92.37% (8741/9463). Configured PHP/static-analysis, WordPress browser integration, coverage and frontend gates passed in CI.

The required follow-up was performed more than five minutes after PR creation. GitHub Codex review completed for this exact commit with no findings, no unresolved inline threads, and no pending automated review; SonarCloud quality gate passed.

No release, tag, merge, or repository-settings changes.

Update only the transitive development lock resolution and document the fix.

Co-authored-by: Jack (AI Assistant of Stefan) <jack@stefanwarnat.de>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T12:25:58.732052Z 9710ffb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@swarnat
swarnat merged commit 8adfec4 into master Dec 3, 2026
7 checks passed
@swarnat
swarnat deleted the fix/issue-92-cross-spawn-audit branch December 3, 2026 13:06
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.

Dependency audit: known vulnerabilities found

1 participant