Weak Encoding for Password in strapi - CVE-2025-25298

 

Weak Encoding for Password in strapi - CVE-2025-25298

Published: April 23, 2026


Vulnerability identifier: #VU126969
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-25298
CWE-ID: CWE-261
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: strapi.io
Affected software:
strapi

Detailed vulnerability description

The vulnerability allows a local user to bypass authentication.

The vulnerability exists due to improper password length validation in the password hashing implementation using bcryptjs when processing passwords longer than 72 bytes. A local user can create or use a password exceeding 72 bytes so that only the first 72 bytes are validated to bypass authentication.

User interaction is required.


How to mitigate CVE-2025-25298

Install security update from vendor's website.

Sources