CVE-2025-25298
Missing Maximum Password Length Validation in Strapi Password Hashing
Record summary
CVE-2025-25298 has a selected CVSS score of 6.3 (medium).
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.
Exploitation context
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Oct 16, 2025 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
strapiBrowse strapi / strapi | CVE List | < 5.10.3 | affected |
@strapi/coreBrowse npm / @strapi/core | GitHub Advisory | Before 5.10.3 · Fixed in 5.10.3 | affected |