Skip to content

Remediate Next bundled PostCSS advisory (#7)#337

Merged
baixiangcpp merged 1 commit into
mainfrom
fix/issue-7-next-postcss-override
Jul 16, 2026
Merged

Remediate Next bundled PostCSS advisory (#7)#337
baixiangcpp merged 1 commit into
mainfrom
fix/issue-7-next-postcss-override

Conversation

@baixiangcpp

Copy link
Copy Markdown
Owner

Summary

  • Upgrade next, @next/bundle-analyzer, and eslint-config-next to stable 16.2.10.
  • Override only Next's internal PostCSS dependency to patched 8.5.10, removing GHSA-qx2v-qp2m-jg93 from the production dependency graph.
  • Ratchet CI from a high-only production audit to a moderate-or-higher audit while retaining the legacy high command.
  • Update the issue runbook and guards to lock the effective dependency, CI wiring, and exact audit command.

Closes #7

Validation

  • Node 20.20.2 / npm 10.9.8 clean npm ci
  • Effective versions: Next 16.2.10 / Next PostCSS 8.5.10
  • npm audit --omit=dev --json: 0 vulnerabilities
  • npm run check:audit:prod
  • npm run check:audit:prod-high
  • npm run lint
  • Full Vitest: 319 files, 1723 passed, 3 skipped
  • Coverage: 83.06 / 72.55 / 89.89 / 86.5
  • npm run validate
  • npm run build:app
  • npm run build:post
  • npm run test:e2e:smoke
  • npm run test:e2e:pwa

Risk

Stable Next 16.2.10 still declares PostCSS 8.4.31, so this uses a parent-scoped npm override. PostCSS 8.5.10 is the first patched version and is already adopted by the Next 16.3 canary line; the clean install, full static export, post-build gates, smoke suite, and PWA suite all pass.

@baixiangcpp

Copy link
Copy Markdown
Owner Author

@codex review

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying byteflow with  Cloudflare Pages  Cloudflare Pages

Latest commit: f4d7ba5
Status: ✅  Deploy successful!
Preview URL: https://40f26e8f.byteflow-c58.pages.dev
Branch Preview URL: https://fix-issue-7-next-postcss-ove.byteflow-c58.pages.dev

View logs

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: f4d7ba5358

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

@baixiangcpp
baixiangcpp merged commit df9dae7 into main Jul 16, 2026
3 checks passed
@baixiangcpp
baixiangcpp deleted the fix/issue-7-next-postcss-override branch July 16, 2026 20:31
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.

Track upstream fix for Next bundled PostCSS advisory

1 participant