Vulnerability · Published May 27, 2025 · Assigned by GitHub_M
CVE-2025-48370auth-js Vulnerable to Insecure Path Routing from Malformed User Input
Low 2.7
In plain English
A low-severity improper authentication in auth-js from supabase. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
auth-js is an isomorphic Javascript library for Supabase Auth. Prior to version 2.70.0, the library functions getUserById, deleteUser, updateUserById, listFactors and deleteFactor did not require the user supplied values to be valid UUIDs. This could lead to a URL path traversal, resulting in the wrong API function being called. Implementations that follow security best practice and validate user controlled inputs, such as the userId are not affected by this. This issue has been patched in version 2.70.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @supabase/auth-js | 2.70.0 | GHSA-8r88-6cj9-9fh5 |
Affected products (as reported)
Weakness: CWE-287, CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U
References
- https://github.com/supabase/auth-js/security/advisories/GHSA-8r88-6cj9-9fh5 x_refsource_CONFIRM
- https://github.com/supabase/auth-js/pull/1063 x_refsource_MISC
- https://github.com/supabase/auth-js/commit/1bcb76e479e51cd9bca2d7732d0bf3199e07a693 x_refsource_MISC