Unauthenticated account access via bcrypt password truncation
Published Oct 16, 2025 · Updated Oct 16, 2025
Weak password handling in Strapi before 5.10.3 allows remote attackers to authenticate to accounts created with passwords over 72 bytes. @strapi/core passes overlong passwords to bcryptjs, which silently discards every byte after the 72nd during hashing and comparison. Exploitation requires an existing admin or Users & Permissions account with an overlong password and knowledge or guessing of its retained prefix; access is limited to that account's privileges.
Summary
What happened
Weak password handling in Strapi before 5.10.3 allows remote attackers to authenticate to accounts created with passwords over 72 bytes. @strapi/core passes overlong passwords to bcryptjs, which silently discards every byte after the 72nd during hashing and comparison. Exploitation requires an existing admin or Users & Permissions account with an overlong password and knowledge or guessing of its retained prefix; access is limited to that account's privileges.
The record
- CVE
- CVE-2025-25298
- Published
- Oct 16, 2025
- Updated
- Oct 16, 2025
- Vendor
- Strapi
- Product
- Strapi
- Classifications
- CWE-261, T1078
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 16, 2025CVE publishedPublication date reported by the CVE source.
- Oct 16, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 5.10.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- GHSA-2cjv-6wg9-f4f3 authentication proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo