---
title: "GHSA-8r88-6cj9-9fh5: auth-js Vulnerable to Insecure Path Routing from Malformed User Input"
description: "Low severity. auth-js Vulnerable to Insecure Path Routing from Malformed User Input. Affects @supabase/auth-js; fixed in 2.70.0."
url: https://inlinr.com/advisories/GHSA-8r88-6cj9-9fh5
lang: en
---

[Packages](https://inlinr.com/packages) / [@supabase/auth-js](https://inlinr.com/packages/@supabase/auth-js) / [Security](https://inlinr.com/packages/@supabase/auth-js/security)

Low Vulnerability GHSA-8r88-6cj9-9fh5 CVE-2025-48370 Published 27 May 2025

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

Your version 

Affected releases · [@supabase/auth-js](https://inlinr.com/packages/@supabase/auth-js)

- 2.x 2.61.0 – 2.69.1 Fixed in 2.70.0

On 2.x, the newest line:

```
npm install @supabase/auth-js@2.70.0
```

Every release on a timeline

1. Affected

2.61.0 – 2.69.1  
23 releases
2. Fixed

2.70.0 – 2.119.2  
104 releases, latest

127 stable releases of @supabase/auth-js, oldest to newest.

## What happens

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

[#1063](https://github.com/supabase/auth-js/pull/1063 "https://github.com/supabase/auth-js/pull/1063")

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: low
- **Integrity**: low
- **Availability**: none

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

## References

- [Reference](https://github.com/supabase/auth-js/security/advisories/GHSA-8r88-6cj9-9fh5 "https://github.com/supabase/auth-js/security/advisories/GHSA-8r88-6cj9-9fh5")  
github.com/supabase/auth-js/security/advisories…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-48370 "https://nvd.nist.gov/vuln/detail/CVE-2025-48370")  
nvd.nist.gov/vuln/detail/CVE-2025-48370
- [Pull request](https://github.com/supabase/auth-js/pull/1063 "https://github.com/supabase/auth-js/pull/1063")  
#1063
- [Fix commit](https://github.com/supabase/auth-js/commit/1bcb76e479e51cd9bca2d7732d0bf3199e07a693 "https://github.com/supabase/auth-js/commit/1bcb76e479e51cd9bca2d7732d0bf3199e07a693")  
1bcb76e
- [Package](https://github.com/supabase/auth-js "https://github.com/supabase/auth-js")  
github.com/supabase/auth-js

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
