{"id":"CVE-2026-34076","aliases":["CVE-2026-34076","GHSA-gjxx-92w9-8v8f"],"related":[],"kind":"vulnerability","state":"published","title":"Clerk JavaScript: SSRF in the opt-in clerkFrontendApiProxy feature may leak secret keys to unintended host","summary":"Clerk JavaScript is the official JavaScript repository for Clerk authentication. In @clerk/hono from versions 0.1.0 to before 0.1.5, @clerk/express from versions 2.0.0 to before 2.0.7, @clerk/backend from versions 3.0.0 to before 3.2.3, and @clerk/fastify from versions 3.1.0 to before 3.1.5, 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. This issue has been patched in @clerk/hono version 0.1.5, @clerk/express version 2.0.7, @clerk/backend version 3.2.3, and @clerk/fastify version 3.1.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Clerk JavaScript is the official JavaScript repository for Clerk authentication. In @clerk/hono from versions 0.1.0 to before 0.1.5, @clerk/express from versions 2.0.0 to before 2.0.7, @clerk/backend from versions 3.0.0 to before 3.2.3, and @clerk/fastify from versions 3.1.0 to before 3.1.5, 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. This issue has been patched in @clerk/hono version 0.1.5, @clerk/express version 2.0.7, @clerk/backend version 3.2.3, and @clerk/fastify version 3.1.5.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe `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.\n\n## Affected packages\n\nOnly 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.\n\n| Package | Affected versions | Fixed version |\n|---|---|---|\n| `@clerk/backend` | `>= 3.0.0, <= 3.2.2` | `3.2.3` |\n| `@clerk/express` | `>= 2.0.0, <= 2.0.6` | `2.0.7` |\n| `@clerk/hono` | `>= 0.1.0, <= 0.1.4` | `0.1.5` |\n| `@clerk/fastify` | `>= 3.1.0, <= 3.1.4` | `3.1.5` |\n\nSearch your codebase for the `frontendApiProxy` option. If none of the patterns below appear in your code, you are not affected.\n\n**@clerk/express**\n```ts\napp.use(clerkMiddleware({ frontendApiProxy: { enabled: true } }));\n```\n\n**@clerk/hono**\n```ts\napp.use('*', clerkMiddleware({ frontendApiProxy: { enabled: true } }));\n```\n\n**@clerk/fastify**\n```ts\nfastify.register(clerkPlugin, { frontendApiProxy: { enabled: true } });\n```\n\n**@clerk/backend**\n```ts\nimport { clerkFrontendApiProxy } from '@clerk/backend/proxy';\n```\n\nA quick way to check across your entire project:\n\n```sh\ngrep -r \"frontendApiProxy\\|clerkFrontendApiProxy\" .\n```\n\nIf there are no matches, you are not using this feature.\n\n\n## Recommended actions\n\nClerk'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.\n\n1. **Upgrade** to the patched version of `@clerk/backend` (and `@clerk/express`, `@clerk/hono`, etc.)\n2. **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.\n3. **Audit access logs** for requests to your proxy endpoint (`/__clerk/` by default) containing double slashes in the path.\n\n\n\n## Credit\n\nDiscovered during an internal code audit.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Clerk JavaScript es el repositorio oficial de JavaScript para la autenticación de Clerk. En @clerk/hono desde las versiones 0.1.0 hasta antes de la 0.1.5, @clerk/express desde las versiones 2.0.0 hasta antes de la 2.0.7, @clerk/backend desde las versiones 3.0.0 hasta antes de la 3.2.3, y @clerk/fastify desde las versiones 3.1.0 hasta antes de la 3.1.5, la función clerkFrontendApiProxy en @clerk/backend es vulnerable a la falsificación de petición del lado del servidor (SSRF). Un atacante no autenticado puede elaborar una ruta de petición que hace que el proxy envíe la Clerk-Secret-Key de la aplicación a un servidor controlado por el atacante. Este problema ha sido parcheado en @clerk/hono versión 0.1.5, @clerk/express versión 2.0.7, @clerk/backend versión 3.2.3, y @clerk/fastify versión 3.1.5.","source":"nvd"}],"published":"2026-03-27T19:58:19.000Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"@clerk/hono >= 0.1.0, < 0.1.5","status":"affected"},{"version":"@clerk/express >= 2.0.0, < 2.0.7","status":"affected"},{"version":"@clerk/backend >= 3.0.0, < 3.2.3","status":"affected"},{"version":"@clerk/fastify >= 3.1.0, < 3.1.5","status":"affected"}],"vendor":"clerk","product":"javascript","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.2.3"}],"ecosystem":"npm","package":"@clerk/backend","purl":"pkg:npm/%40clerk/backend","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.7"}],"ecosystem":"npm","package":"@clerk/express","purl":"pkg:npm/%40clerk/express","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.1.5"}],"ecosystem":"npm","package":"@clerk/hono","purl":"pkg:npm/%40clerk/hono","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.1.0","status":"affected","fixed":"3.1.5"}],"ecosystem":"npm","package":"@clerk/fastify","purl":"pkg:npm/%40clerk/fastify","source":"ghsa"}],"references":[{"url":"https://github.com/clerk/javascript/security/advisories/GHSA-gjxx-92w9-8v8f","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34076","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/clerk/javascript","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-01T18:00:15.522Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34076","url":"https://www.cve.org/CVERecord?id=CVE-2026-34076","licence":"CVE Terms of Use","modified":"2026-04-01T18:00:23.118Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gjxx-92w9-8v8f","url":"https://github.com/advisories/GHSA-gjxx-92w9-8v8f","licence":"CC-BY-4.0","modified":"2026-04-06T17:04:07.972Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34076","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34076","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:17.720Z","epss":{"score":0.00348,"percentile":0.30382,"date":"2026-12-01T12:00:22.000Z"}}