Clerk JavaScript: SSRF in the opt-in clerkFrontendApiProxy feature may leak secret keys to unintended host
clerk javascript
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @clerk/backend npm |
|
|
| @clerk/express npm |
|
|
| @clerk/hono npm |
clerk javascript
| Product | Affected | Fixed in |
|---|---|---|
| @clerk/backend npm |
|
|
| @clerk/express npm |
|
|
| @clerk/hono npm |
≥ 0.1.0 · < 0.1.5
|
| @clerk/fastify npm |
|
|
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.
From the CVE record · GitHub_M
The clerkFrontendApiProxy function in @clerk/backend is vulnerable to server-side request forgery in affected Clerk JavaScript packages. 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.
Check applications using @clerk/backend >=3.0.0 <3.2.3, @clerk/express >=2.0.0 <2.0.7, @clerk/hono >=0.1.0 <0.1.5, or @clerk/fastify >=3.1.0 <3.1.5.