CVE-2025-25298
published medium CVSS 4.0 · 6.3Missing Maximum Password Length Validation in Strapi Password Hashing
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| strapi | — | strapi< 5.10.3 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| strapi | strapi | < 5.10.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-261 CWE-261: Weak Encoding for Password
References
2Provider assertions
2GitHub_M · cna
Missing Maximum Password Length Validation in Strapi Password Hashing
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 45b4fb7e3b17892b2833f10fd1d76dc47acdb2a5859704990cae0e8dc8e9ce88
- Ingested
- 23 Sep 2026, 08:41:57 UTC
- Source record
- Official CVE record