Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @clerk/shared
  4. ›
  5. CVE-2026-41248

CVE-2026-41248: Official Clerk JavaScript SDKs: Middleware-based route protection bypass

April 16, 2026 (updated April 27, 2026)

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.

Sessions are not compromised and no existing user can be impersonated - the bypass only affects the middleware-level gating decision.

References

  • github.com/advisories/GHSA-vqx2-fgx2-5wq9
  • github.com/clerk/javascript
  • github.com/clerk/javascript/security/advisories/GHSA-vqx2-fgx2-5wq9
  • nvd.nist.gov/vuln/detail/CVE-2026-41248

Code Behaviors & Features

Detect and mitigate CVE-2026-41248 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.20.17 before 2.22.1, all versions starting from 3.0.0-canary.v20250225091530 before 3.47.4, all versions starting from 4.0.0 before 4.8.1

Fixed versions

  • 2.22.1
  • 3.47.4
  • 4.8.1

Solution

Upgrade to versions 2.22.1, 3.47.4, 4.8.1 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict
  • CWE-863: Incorrect Authorization

Source file

npm/@clerk/shared/CVE-2026-41248.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:57 +0000.