Skip to content

Remediate HIGH/CRITICAL vulnerabilities#800

Merged
acasazza merged 3 commits into
mainfrom
fix/security-vulnerabilities-798
Jul 20, 2026
Merged

Remediate HIGH/CRITICAL vulnerabilities#800
acasazza merged 3 commits into
mainfrom
fix/security-vulnerabilities-798

Conversation

@acasazza

Copy link
Copy Markdown
Member

Summary

  • Bump vite to patched patch releases: 7.3.2 -> 7.3.6 (react-components) and 6.4.2 -> 6.4.3 (docs) — fixes CVE-2026-53571 (both affected ranges) and CVE-2026-53632
  • Bump @babel/core in docs: 7.26.9 -> 7.29.6 — fixes CVE-2026-49356
  • Add pnpm-workspace.yaml overrides for transitive deps:

Test plan

  • pnpm install resolves all four packages to patched versions (verified in lockfile)
  • pnpm audit --audit-level high no longer flags vite/ws/esbuild/@babel-core
  • vitest run against react-components with test-org .env loaded: 52 passed, 21 skipped, 2 pre-existing/unrelated failures (Vitest 4 API-signature mismatch in one spec, flaky network timeout)
  • tsc -b production build succeeds

Closes #798

- Bump vite to patched patch releases in both packages:
  - packages/react-components: 7.3.2 -> 7.3.6 (fixes CVE-2026-53571, 7.x line)
  - packages/docs: 6.4.2 -> 6.4.3 (fixes CVE-2026-53571, 6.x line, and CVE-2026-53632)
- Bump @babel/core in packages/docs: 7.26.9 -> 7.29.6 (fixes CVE-2026-49356)
- Add pnpm-workspace.yaml overrides for transitive deps:
  - ws >= 8.21.0 (fixes CVE-2026-48779)
  - esbuild >= 0.28.1 (fixes GHSA-g7r4-m6w7-qqqr)
  - @babel/core >= 7.29.6 (fixes CVE-2026-49356 wherever pulled in transitively)

pnpm audit --audit-level high: vite/ws/esbuild/@babel-core no longer flagged
(remaining 2 high findings are form-data/sigstore via lerna, unrelated to #798)

Closes #798
@malessani malessani changed the title 🔒 fix(security): remediate HIGH/CRITICAL vulnerabilities (issue #798) Remediate HIGH/CRITICAL vulnerabilities (issue #798) Jul 20, 2026
@malessani malessani changed the title Remediate HIGH/CRITICAL vulnerabilities (issue #798) Remediate HIGH/CRITICAL vulnerabilities Jul 20, 2026
malessani
malessani previously approved these changes Jul 20, 2026
The pkg-pr-new workflow (and Netlify, via corepack) ran pnpm 9, which reads
`overrides` from package.json's `pnpm.overrides` field. Issue #775 migrated all
overrides to pnpm-workspace.yaml (a pnpm 10+ feature), so under pnpm 9 the
resolved overrides are empty while the lockfile still lists them, producing
ERR_PNPM_LOCKFILE_CONFIG_MISMATCH on `pnpm install --frozen-lockfile`.

This was latent: #775 was pushed straight to main, and pkg-pr-new skips main,
so no branch build exercised it until now.

- pkg-pr-new: pnpm/action-setup v3/9.x -> v4/10 (matches publish.yaml)
- root package.json: pin packageManager pnpm@10.34.5 so Netlify's corepack
  build uses a version that reads pnpm-workspace.yaml overrides

Regenerating the lockfile is NOT a fix: under pnpm 9 it silently strips the
entire overrides block, undoing the security remediations.
action-setup@v4 errors ("Multiple versions of pnpm specified") when both a
`version:` input and a package.json `packageManager` field are present. Drop
the explicit `version: 10` from both workflows so they resolve pnpm from the
pinned packageManager field, keeping a single source of truth.
@pkg-pr-new

pkg-pr-new Bot commented Jul 20, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@commercelayer/react-components@800

commit: e19235c

@commercelayer commercelayer deleted a comment from netlify Bot Jul 20, 2026
@acasazza
acasazza requested review from gciotola and malessani July 20, 2026 14:55
@acasazza
acasazza merged commit 0f991d7 into main Jul 20, 2026
2 of 6 checks passed
@acasazza
acasazza deleted the fix/security-vulnerabilities-798 branch July 20, 2026 15:09
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.

[VANTA] [VULNERABILITY] <HIGH> CVE-2026-48779, CVE-2026-49356, CVE-2026-53571 and others, fix before 2026-07-20

2 participants