# CVE-2025-25298: Missing Maximum Password Length Validation in Strapi Password Hashing

> CVE-2025-25298: Missing Maximum Password Length Validation in Strapi Password Hashing. CVSS 5.3 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-25298
Last updated: 2026-10-19T17:10:00Z

- Published: 2025-10-16 16:21 UTC · Updated: 2026-10-19 17:10 UTC · Assigner: GitHub\_M
- CVSS: 5.3 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.40%, 34th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-261

## 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.

## Affected vendors and products

- strapi: strapi

## Tracked companies

- [Strapi Cloud](https://rewindex.com/company/strapi-cloud.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-25298)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-25298)
- [https://github.com/strapi/strapi/commit/41f8cdf116f7f464dae7d591e52d88f7bfa4b7cb](https://github.com/strapi/strapi/commit/41f8cdf116f7f464dae7d591e52d88f7bfa4b7cb)
- [https://github.com/strapi/strapi/security/advisories/GHSA-2cjv-6wg9-f4f3](https://github.com/strapi/strapi/security/advisories/GHSA-2cjv-6wg9-f4f3)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-25298 · Markdown: https://rewindex.com/cve/CVE-2025-25298.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-25298 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:13:16.590Z
