CVE-2025-25298

MEDIUM CVSS 4.0: 6.3 EPSS 0.40%
Updated Oct 19, 2026
Strapi
Parameter Value
CVSS 6.3 (MEDIUM)
Affected Versions before 5.10.3
Fixed In 5.10.3
Type CWE-261
Vendor Strapi
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Strapi Strapi
cpe:2.3:a:strapi:strapi:*:*:*:*:*:*:*:*
— 5.10.3