Alta

Clerk: SSRF in the opt-in clerkFrontendApiProxy feature may leak secret keys to unintended host

  • Publicada: 27.03.2026
  • Actualizado: 11.10.2026 10:22

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:

bash
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 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.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de npm @clerk/backend >= 3.0.0, < 3.2.3 3.2.3
Paquete de npm @clerk/express >= 2.0.0, < 2.0.7 2.0.7
Paquete de npm @clerk/fastify >= 3.1.0, < 3.1.5 3.1.5
Paquete de npm @clerk/hono >= 0.1.0, < 0.1.5 0.1.5

Referencias

Puntuación CVSS 7.4/10
Vector CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Debilidad (CWE)
CWE-918
Plataforma
npm
Paquete
@clerk/backend, @clerk/express, @clerk/fastify
Publicada
27.03.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-gjxx-92w9-8v8f - CC BY 4.0

Historial de vulnerabilidades: @clerk/express

Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Entradas en total
3
Primera → última
07.2025 04.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Alta 3

Divulgaciones por año

  1. 2025: 1
  2. 2026: 2
  1. Alta · 8.1 CVE-2026-42349 >= 0.1.0, < 1.7.79, >= 2.0.0, < 2.1.6 1.7.79, 2.1.6
  2. Clerk: SSRF in the opt-in clerkFrontendApiProxy feature may leak secret keys to unintended host esta entrada
    Alta · 7.4 CVE-2026-34076 >= 2.0.0, < 2.0.7 2.0.7
  3. Alta · 7.5 CVE-2025-53548 >= 1.6.0, < 1.7.4 1.7.4

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.