fix(security): bump @clerk/clerk-js to 5.125.10 (CVE-2026-42349 authorization bypass)
Summary
pro-test is the shipped worldmonitor-pro bundle (built via npm run build:pro → vite build && prerender), and it ships @clerk/clerk-js for authentication. The resolved 5.125.9 is affected by:
CVE-2026-42349/GHSA-w24r-5266-9c3c(High) — "Clerk has an authorization bypass when combining organization, billing, or reverification checks". Fixed in5.125.10.
Because this is an authorization bug in a shipped, auth-gated product, it's worth fixing rather than leaving baselined.
Fix
Pin the lockfile to @clerk/[email protected] — the minimal patch within the existing ^5.x range. This pulls @clerk/[email protected] and [email protected], which also clears the transitive GHSA-qjx8-664m-686j (js-cookie per-instance prototype hijack) that came in through the old clerk dependency tree.
Verified with npm audit --omit=dev on pro-test before/after: both GHSA-w24r-5266-9c3c and GHSA-qjx8-664m-686j drop out; no new advisories appear.
Note on the audit baseline (deliberately scoped out)
Both advisories are currently baselined for pro-test in audit-production-dependencies.mjs. After this bump neither matches a live advisory, so the audit job will emit stale-baseline warnings (non-blocking — only new unbaselined high advisories fail the gate).
I intentionally left the baseline list and its unit-test fixtures (tests/security-audit-baseline.test.mjs keys its examples off these exact GHSAs) untouched, to keep this PR a clean dependency bump. Removing the two now-stale pro-test entries is a tidy follow-up that also needs the test fixtures re-pointed — happy to send that separately if you'd prefer it bundled.
Type of change
- [x] Bug fix (security)
🤖 Generated with Claude Code
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| worldmonitor | Preview, Comment | Jun 28, 2026 10:06am |
Greptile Summary
This PR bumps @clerk/clerk-js from 5.125.9 to 5.125.10 in the pro-test sub-package to remediate CVE-2026-42349 (authorization bypass) and also clears the transitive GHSA-qjx8-664m-686j (js-cookie prototype hijack) as a side-effect. The audit baseline in audit-production-dependencies.mjs intentionally retains both stale GHSAs for pro-test, which the PR author flags for a follow-up cleanup.
pro-test/package.jsonraises the semver floor for@clerk/clerk-jsto^5.125.10so future installs can't resolve the vulnerable5.125.9.pro-test/package-lock.jsonpins the resolved Clerk stack (@clerk/shared,@clerk/localizations,@clerk/types,js-cookie) to their fixed versions; it also records 6 previously-untracked bundled sub-entries for@tailwindcss/oxide-wasm32-wasithat are unrelated to the Clerk bump.
Confidence Score: 4/5
Safe to merge — the Clerk and transitive dep versions are correct, integrity hashes look well-formed, and the semver floor in package.json prevents re-resolving the vulnerable version.
The Clerk dep chain is updated correctly end-to-end, the semver range in package.json is raised so future installs stay above the vulnerable version, and the stale audit baseline is intentional and non-blocking per the CI script logic. The only noise is 6 unrelated @tailwindcss/oxide-wasm32-wasi bundled sub-entries that snuck in as a lockfile regeneration artifact — they don't affect the bundle but make the diff harder to audit.
pro-test/package-lock.json — the incidental @tailwindcss/oxide-wasm32-wasi sub-entries are worth a quick look to confirm they are truly inert; pro-test/package.json is straightforward.
Important Files Changed
| Filename | Overview |
|---|---|
| pro-test/package.json | Raises the @clerk/clerk-js semver floor from ^5.125.7 to ^5.125.10, preventing any future npm install from resolving the CVE-affected 5.125.9. No other changes. |
| pro-test/package-lock.json | Pins the Clerk dep tree to fixed versions and bumps js-cookie to 3.0.7; also picks up 6 new @tailwindcss/oxide-wasm32-wasi bundled sub-entries (all inBundle: true, optional: true) that are unrelated to the security fix and appear to be npm lockfile regeneration artifacts. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["@clerk/clerk-js\n5.125.9 → 5.125.10\n(CVE-2026-42349 fixed)"] --> B["@clerk/shared\n3.47.4 → 3.47.7\n(GHSA-qjx8-664m-686j cleared)"]
A --> C["@clerk/localizations\n3.37.4 → 3.37.7"]
A --> D["@clerk/types\n4.101.22 → 4.101.25"]
B --> E["js-cookie\n3.0.5 → 3.0.7\n(prototype hijack patched)"]
D --> B
F["audit-production-dependencies.mjs\nbaseline: GHSA-w24r-5266-9c3c, GHSA-qjx8-664m-686j\n(intentionally left stale — non-blocking warnings)"] -.->|stale baseline warning| A
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A["@clerk/clerk-js\n5.125.9 → 5.125.10\n(CVE-2026-42349 fixed)"] --> B["@clerk/shared\n3.47.4 → 3.47.7\n(GHSA-qjx8-664m-686j cleared)"]
A --> C["@clerk/localizations\n3.37.4 → 3.37.7"]
A --> D["@clerk/types\n4.101.22 → 4.101.25"]
B --> E["js-cookie\n3.0.5 → 3.0.7\n(prototype hijack patched)"]
D --> B
F["audit-production-dependencies.mjs\nbaseline: GHSA-w24r-5266-9c3c, GHSA-qjx8-664m-686j\n(intentionally left stale — non-blocking warnings)"] -.->|stale baseline warning| A
Reviews (1): Last reviewed commit: "fix(security): bump @clerk/clerk-js to 5..." | Re-trigger Greptile