Skip to content

chore(deps): fix brace-expansion, js-yaml, and adm-zip vulnerabilities - #2493

Merged
theodesp merged 4 commits into
canaryfrom
chore/fix-brace-expansion-js-yaml-adm-zip
Aug 13, 2026
Merged

chore(deps): fix brace-expansion, js-yaml, and adm-zip vulnerabilities#2493
theodesp merged 4 commits into
canaryfrom
chore/fix-brace-expansion-js-yaml-adm-zip

Conversation

@theodesp

@theodesp theodesp commented Aug 12, 2026

Copy link
Copy Markdown
Member

Summary

Fixes high-severity vulnerabilities in brace-expansion, js-yaml, and adm-zip across the root workspace and supported examples (block-support, tutorial). Also fixes test compatibility with Next.js 16. custom-toolbar (deprecated) and faustwp-getting-started (no lockfile) are not touched.

Root workspace (package.json / package-lock.json)

examples/next/block-support

  • adm-zip: add override >=0.6.0 (was 0.5.17) — fixes GHSA-xcpc-8h2w-3j85
  • js-yaml: tighten override to >=4.3.1 (was ^4.1.1)

examples/next/tutorial

  • js-yaml: tighten override to >=4.3.1 (was ^4.1.1)

packages/faustwp-core — Next.js 16 test compatibility

  • jest.config.js: add moduleNameMapper entry for next/config — next 16 removed next/config from its exports map so Jest's resolver throws before any jest.mock() factory runs; the mapper short-circuits resolution to a local stub
  • __mocks__/next-config.js: stub providing setConfig / default as no-ops (the real setConfig was always dead code in the test — Faust uses its own config store)
  • tests/hooks/useLogout.test.ts: import act from react instead of deprecated react-dom/test-utils

Test plan

  • npm audit in repo root shows no brace-expansion or js-yaml findings
  • npm audit in examples/next/block-support shows no adm-zip or js-yaml findings
  • npm audit in examples/next/tutorial shows no js-yaml findings
  • npx jest in packages/faustwp-core passes on both Next.js 15 and 16

🤖 Generated with Claude Code

- Root: pin js-yaml to 4.3.1 (was 4.2.0, CVE GHSA-52cp-r559-cp3m); update brace-expansion to 1.1.18/2.1.4/5.0.9 across workspace packages
- block-support: pin js-yaml >=4.3.1, adm-zip >=0.6.0 (GHSA-xcpc-8h2w-3j85); regenerate lockfile
- tutorial: pin js-yaml >=4.3.1; regenerate lockfile

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@theodesp
theodesp requested review from a team, colinmurphy and josephfusco as code owners August 12, 2026 16:42
@changeset-bot

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9fc1c1c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Analysis for @faustwp/getting-started-example

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

theodesp and others added 3 commits August 12, 2026 17:50
- Root: tighten postcss override to ^8.5.23 (was ^8.5.10); add nested
  next override to force postcss ^8.5.23 inside next (was exact-pinned
  8.4.31); regenerate lockfile via npm audit fix
- block-support: tighten postcss override to ^8.5.23 (was >=8.5.10);
  regenerate lockfile

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…compat

next/config is removed in Next.js 16. The setConfig import was dead code
(Faust uses its own config store, not Next.js runtime config), so mocking
the module is the minimal fix that keeps the test working across versions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The nested "next": {"postcss": "^8.5.23"} override caused npm to hoist
next from 15.5.19 to 16.3.0, breaking tests that depend on next/config
(removed in Next.js 16). Restoring root lockfile from canary baseline
and re-applying only js-yaml and brace-expansion fixes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@theodesp
theodesp enabled auto-merge (squash) August 12, 2026 17:56
@theodesp
theodesp merged commit 402bfd2 into canary Aug 13, 2026
20 of 28 checks passed
@theodesp
theodesp deleted the chore/fix-brace-expansion-js-yaml-adm-zip branch August 13, 2026 06:43
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.

2 participants