Clerk astro
Official Clerk JavaScript SDKs: Middleware-based route protection bypass
Clerk JavaScript is the official JavaScript repository for Clerk authentication. createRouteMatcher in @clerk/nextjs, @clerk/nuxt, and @clerk/astro can be bypassed by certain crafted requests, allowing them to skip middleware gating and reach downstream handlers. This vulnerability is fixed in @clerk/astro 1.5.7, 2.17.10, and 3.0.15; @clerk/nextjs 5.7.6, 6.39.2, and 7.2.1; @clerk/nuxt 1.13.28 and 2.2.2; and @clerk/shared 2.22.1, 3.47.4, anc 4.8.1
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.0.1, < 1.5.7
- >= 2.0.0-snapshot.v20241206174604, <= 2.17.9
- >= 3.0.0, < 3.0.15
Fixed in 1.5.7, 3.0.15
- >= 5.0.0, < 5.7.6
- >= 6.0.0-snapshot.vb87a27f, < 6.39.2
- >= 7.0.0, < 7.2.1
Fixed in 5.7.6, 6.39.2, 7.2.1
- >= 1.1.0, < 1.13.28
- >= 2.0.0, < 2.2.2
Fixed in 1.13.28, 2.2.2
- >= 2.20.17, < 2.22.1
- >= 3.0.0-canary.v20250225091530, < 3.47.4
- >= 4.0.0, < 4.8.1
Fixed in 2.22.1, 3.47.4, 4.8.1
Mitigation
Upgrade astro to 1.5.7 or 3.0.15 or later.
Upgrade nextjs to 5.7.6 or 6.39.2 or 7.2.1 or later.
Upgrade nuxt to 1.13.28 or 2.2.2 or later.
Upgrade shared to 2.22.1 or 3.47.4 or 4.8.1 or later.
References
- Vendor advisory github.com/clerk/javascript/security/advisorie…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.