CVE-2025-25298

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductStrapi
PublishedOct 16, 2025
First seenOct 16, 2025
Weakness typeCWE-261CWE-261

How to fix

Update
  • strapi strapi5.10.3 or later
  • @strapi/core5.10.3 or later

Affected products

ProductAffected versionsFixed in
strapi strapiv < 5.10.35.10.3
@strapi/corenpmv < 5.10.35.10.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.