CVE-2025-25298
JavaScript vulnerability analysis and mitigation

Overview

Strapi, an open source headless CMS, contains a vulnerability in the @strapi/core package versions before 5.10.3 related to password length validation. The vulnerability stems from the package not enforcing a maximum password length when using bcryptjs for password hashing, where bcryptjs silently truncates passwords longer than 72 bytes (GitHub Advisory, NVD). The vulnerability was discovered and disclosed on October 16, 2025.

Technical details

The vulnerability occurs because bcryptjs ignores any bytes beyond 72 when hashing passwords. This means that users can create accounts with passwords exceeding 72 bytes but can later authenticate using only the first 72 bytes of the password. The issue has been assigned a CVSS v4.0 base score of 6.3 (MEDIUM) with the vector string 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).

Impact

The vulnerability reduces the effective entropy of overlong passwords and may mislead users who believe characters beyond 72 bytes are required. This creates a low likelihood of unintended authentication if an attacker can obtain or guess the truncated portion of the password. Additionally, long over-length inputs can impose unnecessary processing overhead on the system (GitHub Advisory).

Mitigation and workarounds

The issue has been fixed in version 5.10.3 of the @strapi/core package. The fix includes adding a maximum password length validation (72 characters) during password creation and updates for both Admin and U&P users. No known workarounds exist for versions prior to 5.10.3 (NVD, GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62427HIGH8.7
  • JavaScriptJavaScript
  • @angular/ssr
NoYesOct 16, 2025
CVE-2025-53092MEDIUM6.5
  • JavaScriptJavaScript
  • @strapi/core
NoYesOct 16, 2025
CVE-2025-11849MEDIUM6.4
  • JavaScriptJavaScript
  • Mammoth
NoYesOct 17, 2025
CVE-2025-25298MEDIUM6.3
  • JavaScriptJavaScript
  • @strapi/core
NoYesOct 16, 2025
CVE-2025-62505LOW3
  • JavaScriptJavaScript
  • @lobehub/chat
NoYesOct 17, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management