CVE-2025-48370
JSON

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 packageVersionsReported by
supabase auth-js< 2.70.0CVE List
@supabase/auth-js (npm)before 2.70.0GitHub Advisory Database

All scores

GitHub_M2.7low CVSS:4.0CVSS: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
GitHublow CVSS:4.0CVSS: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

CWE-22CWE-287

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

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

https://github.com/supabase/auth-js/pull/1063

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

SourceRecordLicence
CVE ListCVE-2025-48370 changed 2026-07-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-8r88-6cj9-9fh5 changed 2026-05-05CC-BY-4.0
NVDCVE-2025-48370 changed 2026-06-17Public domain