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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-16T16:21:45.585Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-2cjv-6wg9-f4f3
- Weaknesses: CWE-261
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- strapi strapi: < 5.10.3; before 5.10.3
- @strapi/core (npm): before 5.10.3

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/strapi/strapi/security/advisories/GHSA-2cjv-6wg9-f4f3> (exploit, vendor-advisory, web)
- <https://github.com/strapi/strapi/commit/41f8cdf116f7f464dae7d591e52d88f7bfa4b7cb> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25298> (advisory)
- <https://github.com/strapi/strapi> (package)

## Sources

- CVE List: [CVE-2025-25298](https://www.cve.org/CVERecord?id=CVE-2025-25298), CVE Terms of Use, modified 2025-10-16
- GitHub Advisory Database: [GHSA-2cjv-6wg9-f4f3](https://github.com/advisories/GHSA-2cjv-6wg9-f4f3), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-25298](https://nvd.nist.gov/vuln/detail/CVE-2025-25298), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-25298 · Whole record: https://cve.day/CVE-2025-25298.json · Rebuilt by cve.day 2026-11-25T22:59:06.499Z
