Security Resilience

CVE-2025-25298

Strapi ≤ 5.10.3

Public PoC
Published
16 October 2025
Modified
19 October 2026
Patch / advisory
CVSS Score v4 6.3
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0040 35th percentile
Risk Priority 31 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-25298 is a medium-severity Weak Encoding for Password (CWE-261) vulnerability in Strapi. Its CVSS base score is 6.3 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Valid Accounts (T1078); ranked at the 35th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SC-13 (Cryptographic Protection) and IA-5 (Authenticator Management) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1078 Valid Accounts Stealth
Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
T1552.001 Credentials In Files Credential Access
Adversaries may search local file systems and remote file shares for files containing insecurely stored credentials.
T1552.002 Credentials in Registry Credential Access
Adversaries may search the Registry on compromised systems for insecurely stored credentials.
T1589.001 Credentials Reconnaissance
Adversaries may gather credentials that can be used during targeting.
T1078.003 Local Accounts Stealth
Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-22894Same product: Strapi Strapi
CVE-2019-18818Same product: Strapi Strapi
CVE-2025-64526Same product: Strapi Strapi
CVE-2024-34065Same product: Strapi Strapi
CVE-2026-22706Same product: Strapi Strapi
CVE-2026-27886Same product: Strapi Strapi
CVE-2026-22599Same product: Strapi Strapi
CVE-2024-37818Same product: Strapi Strapi
CVE-2024-52588Same product: Strapi Strapi
CVE-2025-53092Same product: Strapi Strapi

Affected Assets

strapi
strapi
≤ 5.10.3

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 4 hardening rules · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)

—

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Cryptographic protection mandates approved algorithms and key management that preclude weak encoding schemes for sensitive data such as passwords.

Authenticator management requires secure generation, storage, and distribution of passwords rather than trivial encoding.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.DS-01 mostly match
blocks

Proper cryptographic hashing for data-at-rest directly prevents trivial password encoding while the control addresses broader data protection needs.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

removes

A.8.24 well implemented mandates proper cryptographic protection of sensitive information including passwords; CWE-261 is the absence of that protection (trivial encoding like Base64 instead of proper hashing), so applying the clause replaces the weak encoding with proper cryptography and the weakness stops being present, parallel to the owner's A.8.24 -> CWE-311 and A.8.24 -> CWE-312 `removes` = `full` rulings.

removes

A.5.17 mandates that password hashing use approved cryptographic techniques (not weak encodings like base64), so applying it where it was missing requires replacing the weak encoding with proper hashing, which removes CWE-261; the remainder is application code that handles passwords outside the password management system's reach and legacy code not brought into compliance.

finds

A.8.29's SOURCE reach (SAST, code review) catches the typical literal Base64-on-password pattern near-mechanically, and RUNTIME reach (penetration testing) finds instances where the encoded password is exposed; the bounded remainder is passwords encoded through abstracted frameworks, custom encoding functions, or build-time assembly where the literal pattern is not in source.

prevents

Training developers in proper password storage practices (hashing with bcrypt/scrypt/argon2 rather than encoding) addresses the knowledge gap behind choosing Base64 as 'protection', but the weakness is a specific technical design choice that requires targeted secure-coding education to reach, and even trained developers can still write this defect.

prevents

Enforces secure coding practices that would reject trivial password encoding.

blocks

A.8.3 blocks exploitation by parties who lack authorized access to the storage location holding the weakly-encoded password, but the CWE example explicitly shows a 'devious employee' with legitimate access to config.properties or the registry key still trivially decoding the password -- so authorized insiders remain a nameable remainder that access restriction does not reach.

References