GHSA-8r88-6cj9-9fh5

Suggest an improvement
Source
https://github.com/advisories/GHSA-8r88-6cj9-9fh5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-8r88-6cj9-9fh5/GHSA-8r88-6cj9-9fh5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8r88-6cj9-9fh5
Aliases
Published
2025-05-27T18:00:17Z
Modified
2026-05-05T18:18:39.323414Z
Severity
  • 2.7 (Low) CVSS_V4 - 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 CVSS Calculator
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

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2025-05-27T18:00:17Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "LOW",
    "nvd_published_at": "2025-05-27T16:15:32Z"
}
References

Affected packages

npm / @supabase/auth-js

Package

Name
@supabase/auth-js
View open source insights on deps.dev
Purl
pkg:npm/%40supabase/auth-js

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.70.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-8r88-6cj9-9fh5/GHSA-8r88-6cj9-9fh5.json"
last_known_affected_version_range
"<= 2.69.1"