Skip to content

fix(deps): resolve admin dependency audit findings - #95

Open
swarnat wants to merge 1 commit into
masterfrom
fix/94-admin-dependency-audit
Open

swarnat wants to merge 1 commit into
masterfrom
fix/94-admin-dependency-audit

Conversation

@swarnat

@swarnat swarnat commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Resolve Dependency audit: known vulnerabilities found #94's two reproduced development-tooling advisories: cross-spawn 7.1.0 → 7.1.2 (GHSA-w3gc-668g-rf8f) and minimatch 11.0.9 → 11.0.10 (GHSA-3924-r96c-gp9w).
  • Change only these two transitive lockfile entries; leave package.json, overrides, direct dependencies and shipped dependencies unchanged.
  • Consolidate the existing Unreleased changelog entry while preserving the previous advisory reference.

Verification

Local Node 26.12.1 / npm 12.2.2:

  • Before fix: npm audit --json exit 1, exactly 1 high + 1 low vulnerability matching the issue.
  • After fix: clean npm ci; npm audit --json exit 0 with zero vulnerabilities, including development dependencies; npm audit --omit=dev --audit-level=high exit 0.
  • npm run lint, npm run typecheck, npm test, npm run test:coverage, and npm run build: all exit 0.
  • 436 executed frontend tests; line coverage 98.01% (3306/3373), repository coverage gate passes.
  • Changed lockfile passes Prettier; git diff --check passes. Lockfile package diff verified programmatically: exactly the two development packages above.
  • composer audit --locked and composer validate --strict: exit 0.
  • Local composer check is blocked: host PHP lacks DOM, mbstring, SimpleXML and XMLReader, so locked dev dependencies cannot be installed. WordPress integration/browser checks and combined PHP coverage are left to hosted CI; no local PHP/integration success is claimed.
  • Static added-line security scan: no findings. Independent final review by the coordinating agent remains outside this implementation.

Hosted CI and automated review

Verified against head f4177cb0f4d1a17a7023876aba874681cc29d3ea:

  • Tests and SonarQube run: PHP quality/static analysis, Composer shipped audit, frontend quality/coverage/build, signed disposable release ZIP validation and SonarQube Cloud all pass. SonarCloud Code Analysis also reports success.
  • PHP unit suite: 124 tests / 773 assertions. WordPress suite: 155 tests / 2554 assertions, 1 skipped. Isolated update suites: 59 tests / 170 assertions (single site), 59 tests / 179 assertions (multisite). Combined PHP line coverage gate: 8741/9463 (92.37%). Hosted verified-updates and import browser checks pass.
  • Hosted frontend: 50 test files, 436 passing tests, 98.01% line coverage (3306/3373).
  • Documentation run: build passes; deployment intentionally skipped on pull requests.
  • Five-minute follow-up: Codex code review completed for this exact head with no findings, no inline comments and no unresolved review threads. No automated review remains pending.
  • Non-blocking reporting warning outside this diff: Sonar's PHPUnit JUnit import rejects duplicate measures for tests/wp/tests/VerifiedUpdatesTest.php; the analysis and quality-gate checks still pass. No reporting infrastructure is changed by this dependency-only PR.

Risk / scope

Development dependency patches only; no application behavior or public API changes. Clean-install, lint, test coverage and both admin/frontend production builds exercise the changed tooling. No force audit fixes, release, tag, merge or issue closure.

Refs #94

Update cross-spawn and minimatch transitive development resolutions without changing direct or shipped dependencies.

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

chatgpt-codex-connector Bot commented Dec 5, 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-05T16:58:46.421907Z f4177cb 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 5, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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