Incorrect Authorization Affecting @clerk/astro package, versions <1.5.7>=2.0.0 <2.17.10>=3.0.0 <3.0.15


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-CLERKASTRO-16098249
  • published17 Apr 2026
  • disclosed16 Apr 2026
  • creditChristiaan Swiers

Introduced: 16 Apr 2026

NewCVE-2026-41248  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade @clerk/astro to version 1.5.7, 2.17.10, 3.0.15 or higher.

Overview

@clerk/astro is a Clerk SDK for Astro

Affected versions of this package are vulnerable to Incorrect Authorization via the createPathMatcher() function in @clerk/shared used by downstream createRouteMatcher(). An attacker can gain unauthorized access to protected routes by crafting requests that bypass middleware checks and reach downstream handlers.

Workaround

This vulnerability can be mitigated by adding server-side authentication checks inside route handlers, server components, or server actions.

CVSS Base Scores

version 4.0
version 3.1