CVE-2025-48370: CWE-287: Improper Authentication in supabase auth-js
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.
AI Analysis
Technical Summary
The Supabase auth-js library before version 2.70.0 contains an improper authentication vulnerability (CWE-287) combined with a path traversal issue (CWE-22). Specifically, the functions getUserById, deleteUser, updateUserById, listFactors, and deleteFactor do not enforce that user-supplied identifiers are valid UUIDs, which can lead to URL path traversal and invocation of incorrect API endpoints. This flaw is mitigated if user input validation is implemented by the application. The issue is fixed in version 2.70.0 of auth-js.
Potential Impact
If exploited, this vulnerability could cause the application to call unintended API functions due to path traversal via malformed user IDs. However, the impact is limited by the low CVSS score (2.7) and the requirement that user input is not validated. Implementations following best practices for input validation are not affected. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade the auth-js library to version 2.70.0 or later, where this vulnerability is patched. Additionally, ensure that all user-supplied identifiers, such as userId, are validated to be valid UUIDs before being processed by the API functions. This input validation effectively mitigates the risk.
CVE-2025-48370: CWE-287: Improper Authentication in supabase auth-js
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Supabase auth-js library before version 2.70.0 contains an improper authentication vulnerability (CWE-287) combined with a path traversal issue (CWE-22). Specifically, the functions getUserById, deleteUser, updateUserById, listFactors, and deleteFactor do not enforce that user-supplied identifiers are valid UUIDs, which can lead to URL path traversal and invocation of incorrect API endpoints. This flaw is mitigated if user input validation is implemented by the application. The issue is fixed in version 2.70.0 of auth-js.
Potential Impact
If exploited, this vulnerability could cause the application to call unintended API functions due to path traversal via malformed user IDs. However, the impact is limited by the low CVSS score (2.7) and the requirement that user input is not validated. Implementations following best practices for input validation are not affected. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade the auth-js library to version 2.70.0 or later, where this vulnerability is patched. Additionally, ensure that all user-supplied identifiers, such as userId, are validated to be valid UUIDs before being processed by the API functions. This input validation effectively mitigates the risk.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-05-19T15:46:00.395Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6835dda5182aa0cae2186689
Added to database: 5/27/2025, 3:43:33 PM
Last enriched: 4/27/2026, 10:57:00 PM
Last updated: 5/8/2026, 1:50:33 PM
Views: 180
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.