CVE-2025-71399

better-auth · better-auth

The better-auth library contains an improper input validation vulnerability due to its reliance on the rou3 router library, which may allow for path normalization bypasses.

Executive summary

A high-severity input validation vulnerability in the better-auth library could allow unauthenticated attackers to bypass security constraints.

Vulnerability

This vulnerability is categorized as CWE-20: Improper Input Validation. It stems from the underlying rou3 router library, allowing unauthenticated attackers to potentially bypass path normalization checks.

Business impact

Successful exploitation could lead to unauthorized access or security bypasses within applications utilizing this library. Given the CVSS score of 8.6, this flaw poses a significant risk to application integrity and access control mechanisms, potentially resulting in data exposure or unauthorized operations.

Remediation

Immediate Action: Update the better-auth dependency to version 1.4.5 or later within your project environment.

Proactive Monitoring: Monitor application access logs for unusual request patterns, specifically those attempting to traverse directory paths or manipulate URL parameters.

Compensating Controls: Implement strict input validation at the application firewall level to filter non-standard or unexpected URL patterns.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

The 8.6 CVSS score reflects a high-risk scenario that requires prompt attention. Developers should prioritize updating the better-auth package to version 1.4.5 to ensure the underlying routing vulnerability is remediated and the application security posture is maintained.