{"id":"CVE-2025-48370","aliases":["CVE-2025-48370","GHSA-8r88-6cj9-9fh5"],"related":[],"kind":"vulnerability","state":"published","title":"auth-js Vulnerable to Insecure Path Routing from Malformed User Input","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe 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.\n\nImplementations that follow security best practice and validate user controlled inputs, such as the `userId` are not affected by this.\n\n### Patches\nStrict value checks have been added to all affected functions. These functions now require that the `userId` and `factorId` parameters MUST be valid UUID (v4).\n\n**Patched version:** >= 2.69.1\n\n### Workarounds\nImplementations 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.\n\n### References\nhttps://github.com/supabase/auth-js/pull/1063","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-05-27T15:27:00.864Z","modified":"2026-07-27T18:46:14.582Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-22","CWE-287"],"affected":[{"ranges":[{"version":"< 2.70.0","status":"affected"}],"vendor":"supabase","product":"auth-js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.70.0"}],"ecosystem":"npm","package":"@supabase/auth-js","purl":"pkg:npm/%40supabase/auth-js","source":"ghsa"}],"references":[{"url":"https://github.com/supabase/auth-js/security/advisories/GHSA-8r88-6cj9-9fh5","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/supabase/auth-js/pull/1063","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/supabase/auth-js/commit/1bcb76e479e51cd9bca2d7732d0bf3199e07a693","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48370","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/supabase/auth-js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-05-27T15:36:43.947Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48370","url":"https://www.cve.org/CVERecord?id=CVE-2025-48370","licence":"CVE Terms of Use","modified":"2026-07-27T18:46:14.582Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8r88-6cj9-9fh5","url":"https://github.com/advisories/GHSA-8r88-6cj9-9fh5","licence":"CC-BY-4.0","modified":"2026-05-05T18:18:39.323Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48370","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48370","licence":"Public domain","modified":"2026-06-17T09:29:33.677Z"}],"updatedAt":"2026-11-25T22:58:58.516Z","epss":{"score":0.00918,"percentile":0.61269,"date":"2026-12-01T12:00:22.000Z"}}