Skip to main content
← All vulnerabilities
CVE-2025-25298GHSA-2CJV-6WG9-F4F3

Missing Maximum Password Length Validation in Strapi Password Hashing

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.10.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • strapi strapi

    fixed in 5.10.3

  • @strapi/corenpm

    fixed in 5.10.3

References 2

GitHub · strapi/strapi