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

Low 2.7 Published Updated

Attackers can exploit malformed user input to bypass authentication checks and modify data via path traversal in Supabase Auth library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-48370?

CVE-2025-48370 is a low-severity path traversal vulnerability in supabase auth-js, published on 27 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-287, CWE-22

Which versions are affected by CVE-2025-48370?

2 open source packages ship an affected version, including @supabase/auth-js.

PackageAffectedFixed in
@supabase/auth-js npmAll versions2.70.0
@supabase/auth-js npmAll versions2.70.0

How do I fix CVE-2025-48370?

Upgrade @supabase/auth-js to 2.70.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-48370 being exploited?

There is no known exploitation of CVE-2025-48370 in the wild and no public exploit code.

Sources

Also known as GHSA-8r88-6cj9-9fh5.

Is CVE-2025-48370 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free