{"id":"CVE-2025-25298","published":"2025-10-16T16:21:45Z","modified":"2025-10-16T18:12:49Z","title":"Missing Maximum Password Length Validation in Strapi Password Hashing","vendor":"strapi","product":"strapi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00485,"percentile":0.3449,"provenance":"source"},"cwes":[{"id":"CWE-261","name":"Weak Encoding for Password"}],"references":[{"url":"https://github.com/strapi/strapi/security/advisories/GHSA-2cjv-6wg9-f4f3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/strapi/strapi/commit/41f8cdf116f7f464dae7d591e52d88f7bfa4b7cb","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.9},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"strapi","affectedVersions":[{"vendor":"strapi","product":"strapi","versions":["< 5.10.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-16T18:08:48.659254Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@strapi/core","vulnerableRanges":["<5.10.3"],"patched":["5.10.3"],"from":["GHSA-2cjv-6wg9-f4f3"],"provenance":"source"}],"summary":{"text":"The Strapi headless CMS's @strapi/core package before version 5.10.3 fails to enforce a maximum password length when hashing passwords with bcryptjs, so any bytes beyond 72 are silently discarded. An attacker with network access and no authentication can exploit this by guessing or obtaining only the first 72 bytes of an overlong password, since users who set passwords longer than 72 bytes can later authenticate with just that truncated prefix, and no user interaction or special configuration is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:31Z"},"euvd":{"id":"EUVD-2025-34776","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-56143","published":"2025-10-16","fixed":"5.5.2","kev":false,"link":{"from":"CVE-2024-56143","to":"CVE-2025-25298","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@strapi/core","fromFixed":"5.5.2","toFixed":"5.10.3","daysApart":0}]}},{"cve":"CVE-2025-25298","published":"2025-10-16","fixed":"5.10.3","kev":false},{"cve":"CVE-2025-53092","published":"2025-10-16","fixed":"5.20.0","kev":false,"link":{"from":"CVE-2025-25298","to":"CVE-2025-53092","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@strapi/core","fromFixed":"5.10.3","toFixed":"5.20.0","daysApart":0}]}}],"package":"npm:@strapi/core"}}