🛡️ CVE-2026-34076 — backend
Description
Clerk: SSRF in the opt-in clerkFrontendApiProxy feature may leak secret keys to unintended host
Summary
The clerkFrontendApiProxy function in @clerk/backend is vulnerable to Server-Side Request Forgery (SSRF). An unauthenticated attacker can craft a request path that causes the proxy to send the application's Clerk-Secret-Key to an attacker-controlled server.
Affected packages
Only applications that have opted into the frontendApiProxy feature are affected. This feature is not enabled by default. Users of @clerk/nextjs are not affected due to how the framework handles repeated / in request paths.
| Package | Affected versions | Fixed version |
|---|---|---|
| @clerk/backend | >= 3.0.0, <= 3.2.2 | 3.2.3 |
| @clerk/express | >= 2.0.0, <= 2.0.6 | 2.0.7 |
| @clerk/hono | >= 0.1.0, <= 0.1.4 | 0.1.5 |
| @clerk/fastify | >= 3.1.0, <= 3.1.4 | 3.1.5 |
Search your codebase for the frontendApiProxy option. If none of the patterns below appear in your code, you are not affected.
@clerk/express
```ts
app.use(clerkMiddleware({ frontendApiProxy: { enabled: true } }));
```
@clerk/hono
```ts
app.use('*', clerkMiddleware({ frontendApiProxy: { enabled: true } }));
```
@clerk/fastify
```ts
fastify.register(clerkPlugin, { frontendApiProxy: { enabled: true } });
```
@clerk/backend
```ts
import { clerkFrontendApiProxy } from '@clerk/backend/proxy';
```
A quick way to check across your entire project:
```sh
grep -r "frontendApiProxy\|clerkFrontendApiProxy" .
```
If there are no matches, you are not using this feature.
Recommended actions
Clerk's internal logs show no evidence of users utilizing the built-in proxy with the impacted versions. Despite that, if you are on an impacted version and use the built-in proxy we recommend upgrading and rotating your Clerk Secret Key immediately.
1. Upgrade to the patched version of @clerk/backend (and @clerk/express, @clerk/hono, etc.)
2. Rotate your Clerk Secret Key after upgrading - if an attacker exploited this vulnerability, they may have captured your key. Rotate it in the [Clerk Dashboard](https://dashboard.clerk.com) under API Keys. You should deploy your application with the updated key before revoking the existing key.
3. Audit access logs for requests to your proxy endpoint (/__clerk/ by default) containing double slashes in the path.
Credit
Discovered during an internal code audit.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability none.
Weakness class
CVE-2026-34076 is classified as CWE-918: Server-Side Request Forgery (SSRF). The server fetches a URL supplied by the caller, which can be pointed at internal systems it alone can reach.
Affected software
CVE-2026-34076 is recorded against 5 packages.
- @clerk/backend
- @clerk/express
- @clerk/fastify
- @clerk/hono
- unknown
Timeline and source
Published on 27 March 2026 and last revised on 6 April 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
Details
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| @clerk/backend | — | — |
| @clerk/express | — | — |
| @clerk/fastify | — | — |
| @clerk/hono | — | — |
| unknown | — | — |
References
Similar Threats
- High CVE-2026-42349
- High CVE-2025-53548
More CVE 2026 advisories
Browse all of CVE 2026 in the advisory index.
Site Security Check
Is backend part of your stack?
CVE-2026-34076 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.