CVE-2025-25298 Details
Description
Strapi is an open source headless CMS. The @strapi/core package before version 5.10.3 does not enforce a maximum password length when using bcryptjs for password hashing. Bcryptjs ignores any bytes beyond 72, so passwords longer than 72 bytes are silently truncated. A user can create an account with a password exceeding 72 bytes and later authenticate with only the first 72 bytes. This reduces the effective entropy of overlong passwords and may mislead users who believe characters beyond 72 bytes are required, creating a low likelihood of unintended authentication if an attacker can obtain or guess the truncated portion. Long over‑length inputs can also impose unnecessary processing overhead. The issue is fixed in version 5.10.3. No known workarounds exist.
A vulnerability exists in the Strapi @strapi/core package, prior to version 5.10.3, where the password hashing process using bcryptjs does not limit password length. Bcryptjs truncates passwords longer than 72 bytes, leading to potential authentication bypass and performance issues. Users can create accounts with overly long passwords, but only the first 72 bytes are used for authentication, which could mislead users about password requirements. Additionally, excessively long passwords can slow down server performance.
Users should update to Strapi version 5.10.3 or later, where this vulnerability is fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/strapi/strapi/commit/41f8cdf116f7f464dae7d591e52d88f7bfa4b7cb | [email protected] | Patch |
| https://github.com/strapi/strapi/security/advisories/GHSA-2cjv-6wg9-f4f3 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-261 | Weak Encoding for Password | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| strapi strapi | < 5.10.3 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 31, 2025 | Modified Analysis | [email protected] |
| Nov 25, 2025 | Initial Analysis | [email protected] |
| Oct 16, 2025 | New CVE Received | [email protected] |