2.7low
auth-js Vulnerable to Insecure Path Routing from Malformed User Input
- Severity
- 2.7low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.92% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-8r88-6cj9-9fh5
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
| Product or package | Versions | Reported by |
|---|---|---|
| supabase auth-js | < 2.70.0 | CVE List |
| @supabase/auth-js (npm) | before 2.70.0 | GitHub Advisory Database |
All scores
| GitHub_M | 2.7low CVSS:4.0 | 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 |
| GitHub | low CVSS:4.0 | 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 |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
Strict value checks have been added to all affected functions. These functions now require that the userId and factorId parameters MUST be valid UUID (v4).
Patched version: >= 2.69.1
Workarounds
Implementations that follow security best practice and validate user controlled inputs, such as the userId are not affected by this. It is recommended that users of the auth-js library always follow security best practice and validate all inputs, before passing these to other functions or libraries.
References
NVD (es)
auth-js es una librería de Javascript isomórfica para Supabase Auth. Antes de la versión 2.69.1, las funciones de la librería getUserById, deleteUser, updateUserById, listFactors y deleteFactor no requerían que los valores proporcionados por el usuario fueran UUID válidos. Esto podía provocar un recorrido de la URL, lo que resultaba en la llamada a una función de API incorrecta. Las implementaciones que siguen las mejores prácticas de seguridad y validan las entradas controladas por el usuario, como el ID de usuario, no se ven afectadas. Este problema se ha corregido en la versión 2.69.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-48370 changed 2026-07-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8r88-6cj9-9fh5 changed 2026-05-05 | CC-BY-4.0 |
| NVD | CVE-2025-48370 changed 2026-06-17 | Public domain |