CVE-2025-49006 Wasp has case insensitive OAuth ID vulnerability
Wasp framework allows user impersonation and privilege escalation via case-insensitive OAuth ID handling when using Keycloak with case-sensitive IDs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-49006?
CVE-2025-49006 is a high-severity authentication bypass vulnerability in wasp-lang wasp, published on 9 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Wasp (Web Application Specification) is a Rails-like framework for React, Node.js, and Prisma. Prior to version 0.16.6, Wasp authentication has a vulnerability in the OAuth authentication implementation (affecting only Keycloak with a specific config). Wasp currently lowercases OAuth user IDs before storing / fetching them. This behavior violates OAuth and OpenID Connect specifications and can result in user impersonation, account collisions, and privilege escalation. In practice, out of the OAuth providers that Wasp auth supports, only Keycloak is affected. Keycloak uses a lowercase UUID by default, but users can configure it to be case sensitive, making it affected. Google, GitHub, and Discord use numerical IDs, making them not affected. Users should update their Wasp version to `0.16.6` which has a fix for the problematic behavior. Users using Keycloak can work around the issue by not using a case sensitive user ID in their realm configuration.
Weakness: CWE-276
Which versions are affected by CVE-2025-49006?
How do I fix CVE-2025-49006?
No fix has been published for CVE-2025-49006 yet. Limit exposure of the affected software until one is available.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2025-49006 being exploited?
There is no known exploitation of CVE-2025-49006 in the wild and no public exploit code.
Sources
Also known as GHSA-qvjc-6xv7-6v5f.