{"id":"GHSA-vqx2-fgx2-5wq9","revision":null,"records":[{"revision":"f80203116b4245fe9147fbb60eaaf5d5","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-41248","aliases":[],"title":"Official Clerk JavaScript SDKs:  Middleware-based route protection bypass","description":"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","state":0,"publishedAt":"2026-04-24T21:04:35.81+00:00","modifiedAt":"2026-04-27T13:46:28.646+00:00","affected":[{"ecosystem":"Vendor product","name":"astro","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"clerk\",\n                    \"product\": \"astro\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 0.0.1, < 1.5.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 2.0.0-snapshot.v20241206174604, <= 2.17.9\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 3.0.0, < 3.0.15\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"nextjs","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"clerk\",\n                    \"product\": \"nextjs\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 5.0.0, < 5.7.6\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 6.0.0-snapshot.vb87a27f, < 6.39.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 7.0.0, < 7.2.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"nuxt","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"clerk\",\n                    \"product\": \"nuxt\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.1.0, < 1.13.28\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 2.0.0, < 2.2.2\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"shared","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"clerk\",\n                    \"product\": \"shared\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 2.20.17, < 2.22.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 3.0.0-canary.v20250225091530, < 3.47.4\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 4.0.0, < 4.8.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"severity":"CRITICAL"}],"references":["https://github.com/clerk/javascript/security/advisories/GHSA-vqx2-fgx2-5wq9"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-41248","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-41248","identifiers":["CVE-2026-41248"]},"retained":false,"historicalAffected":[]},{"revision":"fabc75b0875f4871a56466f929651878","observedAt":"2026-10-28T05:07:23.655+00:00","statement":{"source":"euvd","id":"EUVD-2026-25632","aliases":["CVE-2026-41248"],"title":"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 rea…","description":"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","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"severity":null}],"references":["https://github.com/clerk/javascript/security/advisories/GHSA-vqx2-fgx2-5wq9"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-25632","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Apr 24, 2026, 9:04:35 PM","dateUpdated":"Apr 27, 2026, 1:46:28 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-25632","identifiers":["EUVD-2026-25632","CVE-2026-41248"]},"retained":false,"historicalAffected":[]},{"revision":"567a31c1315a450ba47962df4c5bb754","observedAt":"2026-10-27T10:10:07.342+00:00","statement":{"source":"nvd","id":"CVE-2026-41248","aliases":[],"title":"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 rea…","description":"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","state":0,"publishedAt":"2026-04-24T21:16:18.497+00:00","modifiedAt":"2026-10-26T21:10:00.17+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"severity":"CRITICAL"}],"references":["https://github.com/clerk/javascript/security/advisories/GHSA-vqx2-fgx2-5wq9"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-41248","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-436","CWE-863"],"productCriteria":[],"sourceDates":{"published":"2026-04-24T21:16:18.497","lastModified":"2026-10-26T21:10:00.170"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-41248","identifiers":["CVE-2026-41248"]},"retained":false,"historicalAffected":[]},{"revision":"62399e37d7d74634948d0a29d6cfd162","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-vqx2-fgx2-5wq9","aliases":["CVE-2026-41248"],"title":"Official Clerk JavaScript SDKs: Middleware-based route protection bypass","description":"## Summary\n\n`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.\n\nSessions are not compromised and no existing user can be impersonated - the bypass only affects the middleware-level gating decision.\n\n## Who is affected\n\nAll apps using `createRouteMatcher` should upgrade to the patched versions. Patches are drop-in with no API changes. The information below describes the scope of the bypass and helps you understand whether you are potentially affected, but is not a reason to delay the upgrade.\n\nApps relying only on middleware gating via `createRouteMatcher` are affected, because a crafted request can skip middleware checks and reach downstream handlers (API routes, server components, etc.). This middleware pattern permits the bypass:\n\n```ts\n// Next.js example, equivalent patterns exist in Nuxt and Astro\nconst isProtectedRoute = createRouteMatcher(['/admin(.*)']);\n\nexport default clerkMiddleware(async (auth, req) => {\n  if (isProtectedRoute(req)) {\n    await auth.protect();\n  }\n});\n```\n\nThat said, the bypass is limited to the middleware-level route-matching gate. `clerkMiddleware` still authenticates the request and `auth()` reflects the real authentication state of the caller. Auth checks performed inside your route handlers, server components, or server actions continue to work correctly and are not affected. Whether your app is affected in practice depends on whether you have those downstream checks.\n\nExternal APIs that authenticate each request with a token are also unaffected on those endpoints, since token verification runs independently.\n\nAdditionally, this common middleware pattern correctly blocks the bypass at the middleware layer:\n\n```ts\n// Next.js example, equivalent patterns exist in Nuxt and Astro\nconst isPublicRoute = createRouteMatcher(['/docs(.*)']);\n\nexport default clerkMiddleware(async (auth, req) => {\n  if (!isPublicRoute(req)) {\n    await auth.protect();\n  }\n});\n```\n\n`@clerk/shared` is usually not imported directly in application code, but if you import `createPathMatcher` from an affected `@clerk/shared` version, you are also affected. Run `npm why @clerk/shared` (or your package manager's equivalent) to check your installed version.\n\n## Recommended actions\n\nInstall the patched version for your framework (pick the one matching your current major):\n\n**`@clerk/nextjs`**\n- v7.x: fixed in `7.2.1`\n- v6.x: fixed in `6.39.2`\n- v5.x: fixed in `5.7.6`\n\n**`@clerk/nuxt`**\n- v2.x: fixed in `2.2.2`\n- v1.x: fixed in `1.13.28`\n\n**`@clerk/astro`**\n- v3.x: fixed in `3.0.15`\n- v2.x: fixed in `2.17.10`\n- v1.x: fixed in `1.5.7`\n\n**`@clerk/shared`**\n- v4.x: fixed in `4.8.1`\n- v3.x: fixed in `3.47.4`\n- v2.x: fixed in `2.22.1`\n\n## Workaround\n\nIf you cannot upgrade immediately, adding server-side auth checks (`auth()`) inside your route handlers, server components, or server actions provides defense-in-depth against this bypass.\n\n## Timeline\n\nThis issue was reported on 13 APR 2026, patched on 15 APR 2026, and publicly disclosed on 15 APR 2026.\n\nThanks to [Christiaan Swiers](https://github.com/YouGina) for the responsible disclosure of this vulnerability.","state":0,"publishedAt":"2026-04-16T21:28:26+00:00","modifiedAt":"2026-05-05T16:26:37.347726+00:00","affected":[{"ecosystem":"npm","name":"@clerk/nextjs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"5.0.0"},{"kind":"fixed","version":"5.7.6"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/nuxt","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.1.0"},{"kind":"fixed","version":"1.13.28"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/astro","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.1"},{"kind":"fixed","version":"1.5.7"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/shared","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.20.17"},{"kind":"fixed","version":"2.22.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/nextjs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.0.0-snapshot.vb87a27f"},{"kind":"fixed","version":"6.39.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/nextjs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.2.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/nuxt","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.2.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/astro","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0-snapshot.v20241206174604"},{"kind":"fixed","version":"2.17.10"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/astro","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0"},{"kind":"fixed","version":"3.0.15"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/shared","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0-canary.v20250225091530"},{"kind":"fixed","version":"3.47.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@clerk/shared","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0"},{"kind":"fixed","version":"4.8.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/clerk/javascript/security/advisories/GHSA-vqx2-fgx2-5wq9","https://nvd.nist.gov/vuln/detail/CVE-2026-41248","https://github.com/clerk/javascript"],"sourceUrl":"https://github.com/advisories/GHSA-vqx2-fgx2-5wq9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vqx2-fgx2-5wq9","identifiers":["GHSA-vqx2-fgx2-5wq9","CVE-2026-41248"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-30T03:49:20.9459112+00:00","complete":true,"records":1764,"lastAttemptAt":"2026-10-30T03:49:20.9459112+00:00","lastSuccessAt":"2026-10-30T03:49:21.0956195+00:00","error":null,"lastVerifiedAt":"2026-10-30T03:49:21.0956209+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-7e2c4e7288f2c464ad8c61f3bb6017374714faedcc781283ac06a706ee1a820b-31f63acb545dc1dc83bfd29d704f05b1f9bcf49861d98da742d3d09d4feba239","complete":true,"records":416818,"lastAttemptAt":"2026-10-30T03:48:58.3782708+00:00","lastSuccessAt":"2026-10-30T03:48:58.3604559+00:00","error":null,"lastVerifiedAt":"2026-10-30T03:48:58.3782708+00:00","snapshotPublishedAt":"2026-10-30T03:26:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-88fe0b1aa80645bf9d69475adeb3cab6","complete":false,"records":13518,"lastAttemptAt":"2026-10-30T04:01:31.5435945+00:00","lastSuccessAt":"2026-10-30T04:01:31.539+00:00","error":"15 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-30T04:01:31.539+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13136,"expectedIdentifiers":13601,"failedIdentifiers":15},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-30T03:49:20.9459112+00:00","complete":true,"records":1094,"lastAttemptAt":"2026-10-30T03:49:20.9459112+00:00","lastSuccessAt":"2026-10-30T03:49:21.0964525+00:00","error":null,"lastVerifiedAt":"2026-10-30T03:49:21.0964527+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-dff131a3390246408db17133f034dc7f","complete":true,"records":13541,"lastAttemptAt":"2026-10-30T03:49:22.1579892+00:00","lastSuccessAt":"2026-10-30T03:49:22.155+00:00","error":null,"lastVerifiedAt":"2026-10-30T03:49:22.155+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13601,"expectedIdentifiers":13601,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-ed3d9cf8b8585536fcb9b5cdf9f82e66117dc54e56de651034444f578191d1cf","complete":true,"records":9806,"lastAttemptAt":"2026-10-30T03:49:17.9057093+00:00","lastSuccessAt":"2026-10-30T03:49:17.6553909+00:00","error":null,"lastVerifiedAt":"2026-10-30T03:49:17.9057093+00:00","snapshotPublishedAt":"2026-10-30T03:03:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-10-30T03:48:58.4335698+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-10-30T03:48:58.4335698+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3d73c87158b66efc3d2abd577048eff6d8962b9b8404ac23159c8b20cd3852a7","complete":true,"records":3014,"lastAttemptAt":"2026-10-30T03:49:20.9154714+00:00","lastSuccessAt":"2026-10-30T03:49:20.7978659+00:00","error":null,"lastVerifiedAt":"2026-10-30T03:49:20.9154714+00:00","snapshotPublishedAt":"2026-10-30T03:03:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-ec5b13e78c39945726a720832da7660d2774969f16e2a34f99460c135811abd5","complete":true,"records":230948,"lastAttemptAt":"2026-10-30T03:48:58.6037653+00:00","lastSuccessAt":"2026-10-29T22:50:35.0693267+00:00","error":null,"lastVerifiedAt":"2026-10-30T03:48:58.6037653+00:00","snapshotPublishedAt":"2026-10-29T22:33:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}