Skip to content

chore(security): clear all 13 npm audit advisories (lockfile-only) - #51

Merged
mowens3 merged 1 commit into
masterfrom
chore/security-sweep
Oct 26, 2026
Merged

mowens3 merged 1 commit into
masterfrom
chore/security-sweep

Conversation

@mowens3

@mowens3 mowens3 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Security + dependency sweep

Clears every advisory reported by npm audit on this repo. Lockfile-only change: package.json is untouched because every fix fits the existing ^ ranges. No application-logic changes.

npm audit: 13 -> 0

Severity Before After
Critical 2 0
High 9 0
Moderate 2 0
Low 0 0
Total 13 0

Method: npm ci -> npm audit fix (no --force) -> within-range npm update. npm audit fix alone already reached 0; the npm update then pulled the remaining within-range recipe bumps (react 19.3, eslint-config-next matched to next).

Key bumps (all within existing ranges)

  • next 16.2.9 -> 16.4.3 (critical chain: middleware/SSRF/DoS)
  • dompurify 3.4.10 -> 3.4.17 (critical) - resolved transitively; isomorphic-dompurify@2.36.0 already allows ^3.3.1, so no major bump of it was needed
  • undici 7.27.2 -> 7.30.1, zod 4.4.3 -> 4.6.7 (high)
  • postcss 8.5.15 -> 8.5.31, @tailwindcss/postcss 4.3.1 -> 4.3.3
  • sharp 0.34.5 -> 0.35.5, nanoid 3.3.12 -> 3.3.20 (high)
  • browserslist 4.28.2 -> 4.29.4, js-yaml 4.2.0 -> 4.3.2, source-map-js 1.2.1 -> 1.2.2, brace-expansion 1.1.15 -> 1.1.21, baseline-browser-mapping 2.10.37 -> 2.11.33
  • react / react-dom 19.2.7 -> 19.3.1, eslint-config-next 16.2.9 -> 16.4.3 (matched to next)

Deliberately left alone (no advisory forces a major)

  • typescript 5.9.3 (not 7.x), @types/node 22.20.5 (not 26.x; repo targets Node 22 LTS), eslint 9.39.5 (not 10.x)

Verification (GREEN)

  • npm run lint -> pass (exit 0)
  • npm run build -> compiles successfully (exercised by smoke in both modes)
  • npm run smoke -> [smoke] OK on Next.js 16.4.3 for both split_routing and nextjs_first
  • npm audit -> 0 vulnerabilities

Note: the scheduled e2e workflow (e2e.yml) needs Docker + a live Drupal backend and is not part of the PR gate; it was not run here.

Reverted / deferred

None. No bump broke the build or tests.

🤖 Generated with Claude Code

Resolve 2 critical, 9 high, and 2 moderate advisories via `npm audit fix`
(no --force) plus a within-range `npm update`. package.json is unchanged --
every fix fits the existing ^ ranges, so this is a lockfile-only bump with
no application-logic changes.

Key bumps:
- next 16.2.9 -> 16.4.3 (critical chain incl. middleware/SSRF/DoS)
- dompurify 3.4.10 -> 3.4.17 (critical; within isomorphic-dompurify ^3.3.1)
- undici 7.27.2 -> 7.30.1, zod 4.4.3 -> 4.6.7 (high)
- postcss 8.5.15 -> 8.5.31, @tailwindcss/postcss 4.3.1 -> 4.3.3
- sharp 0.34.5 -> 0.35.5, nanoid 3.3.12 -> 3.3.20 (high)
- browserslist, js-yaml, source-map-js, brace-expansion, baseline-browser-mapping
- react/react-dom 19.2.7 -> 19.3.1, eslint-config-next 16.2.9 -> 16.4.3 (match next)

npm audit: 13 -> 0. Lint + smoke (split_routing and nextjs_first) GREEN.
No major bumps: typescript 5.x, @types/node 22.x, eslint 9.x held in place.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T01:06:25.488984Z c605b2d 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c605b2d474

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package-lock.json
Comment on lines +1794 to +1796
"@emnapi/core": "^1.11.1",
"@emnapi/runtime": "^1.11.1",
"@emnapi/wasi-threads": "^1.2.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Lock valid helper versions for the WASI backend

On wasm32-WASI installs, this 4.3.3 backend requires @emnapi/core ^1.11.1 and @emnapi/wasi-threads ^1.2.2, but the lock has only top-level versions 1.10.0 and 1.2.1 and no nested bundled entries. npm ls --package-lock-only --all reports these dependencies as invalid; npm documents that npm ls reports invalid packages. This leaves the optional backend's dependency tree outside its declared ranges and can break Tailwind builds on that platform; record the matching bundled versions under this package.

Useful? React with 👍 / 👎.

@mowens3
mowens3 merged commit c426e80 into master Oct 26, 2026
3 checks passed
@mowens3
mowens3 deleted the chore/security-sweep branch October 26, 2026 02:17
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