Advisory

GHSA-8r88-6cj9-9fh5

Also known as: CVE-2025-48370

Summary

auth-js Vulnerable to Insecure Path Routing from Malformed User Input

Details

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

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-05-27 18:00 UTC
Modified
2026-05-05 18:18 UTC

Affected packages and fixes

@supabase/auth-js

npm · All systems

Affected

  • introduced 0, fixed 2.70.0 (semver)

Fixed versions

2.70.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences