Missing Maximum Password Length Validation in Strapi Password Hashing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Strapi | strapi | before 5.10.3 | 5.10.3 | Patch available | CNA |
| — | @strapi/core (npm) | before 5.10.3 | 5.10.3 | Patch available | GHSA-2cjv-6wg9-f4f3 |
- strapi VendorStrapi Affected before 5.10.3 Fixed in 5.10.3 Patch available CNA
- @strapi/core (npm) Vendor— Affected before 5.10.3 Fixed in 5.10.3 Patch available GHSA-2cjv-6wg9-f4f3
Remediation
- Fix · CNA strapi (strapi) Fixed in 5.10.3
- Fix · GHSA-2cjv-6wg9-f4f3 @strapi/core (npm) Fixed in 5.10.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-25298
- 2026-10-03 Alias added: GHSA-2cjv-6wg9-f4f3
References
More Strapi vulnerabilities
- TI-2023-09037 Query filter flaw in Strapi exposes sensitive user details KEVCVSS 3.1HIGH 7.2
- TI-2019-13554 strapi before 3.0.0-beta.17.5 mishandles password resets within… CVSS 3.1CRITICAL 9.8
- TI-2023-19887 Strapi Improper Rate Limiting vulnerability CVSS 3.1CRITICAL 9.8
- TI-2023-08803 Strapi through 4.5.5 allows authenticated Server-Side Template Injection (SSTI) that can… CVSS 3.1CRITICAL 10.0
- TI-2024-25161 Strapi v4.24.4 was discovered to contain a Server-Side Request Forgery (SSRF) via the… CVSS 3.1HIGH 8.6
- TI-2023-17071 Leaking sensitive user information still possible by filtering on private with prefix fields CVSS 3.1HIGH 8.6
Sources
- CVE-2025-25298 · CVE Program
- CVE-2025-25298 · NVD
- FIRST EPSS
- GHSA-2cjv-6wg9-f4f3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences