CVE-2025-25298CWE-261

CVE-2025-25298

Medium · published October 16, 2025

CVSS v3.1
5.3
EPSS
0%
Percentile
33.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00399 · 33.1th percentile
Weakness
CWE-261 · Weak Encoding for Password
Published
2025-10-16T21:15Z
Affected products (1)
ProductVersionsFixed in
strapi/strapi< 5.10.35.10.3
References (2)
EPSS history
Timeline
  • 16 OCT 16:21Z
    Missing Maximum Password Length Validation in Strapi Password Hashing
    cvelistv5