Skip to main content

Strapi CVE-2026-57997

| EUVDEUVD-2026-40234 MEDIUM
Use of a Broken or Risky Cryptographic Algorithm (CWE-327)
2026-06-29 VulnCheck GHSA-93c7-w42j-xh4p
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain jwtSecret via config leak or secrets exposure
  2. Delivery
    Craft JWT using HS384 or HS512 algorithm header
  3. Exploit
    Sign token with known jwtSecret
  4. Execution
    Submit forged token to Strapi API endpoint
  5. Impact
    Gain unauthorized authenticated session as target user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Approved algorithm selection
Exploitation Conditions

Exploitation unconditionally requires that the attacker already possesses the Strapi jwtSecret value - this is the hard prerequisite with no known bypass. The secondary condition is that the Strapi deployment must lack an explicit plugin::users-permissions.jwt.algorithm value in its configuration; deployments with this directive set to a specific algorithm are not vulnerable. The CVSS 4.0 AT:P (attack requirement: presence) and AC:H metrics both formally encode these prerequisites. What limits exploitation: the jwtSecret must be obtained through a separate prior compromise (config leak, secrets management failure, source code exposure), there is no remote path to extract the jwtSecret via this CVE itself, and impact is bounded to the Strapi application scope with no lateral movement implied. Authentication to Strapi is not required before submitting the forged token, but that distinction is marginal given the secret-possession prerequisite.

Impact

The CVSS 4.0 score of 6.3 with AV:N/AC:H/AT:P/PR:N/UI:N appropriately characterizes this as a medium-severity, technically constrained issue. The single most important risk-limiting factor is that exploitation unconditionally requires prior possession of the jwtSecret - without it, no token forgery is possible regardless of algorithm flexibility. The CVSS AC:H and AT:P metrics both capture this dependency. EPSS data was not provided in the input, and the vulnerability is absent from CISA KEV, indicating no confirmed active exploitation. No POC code is identified. The practical impact is limited to VC:L and VI:L, meaning partial authentication bypass with no availability consequence. The real-world priority is therefore low for organizations where jwtSecret management and secret hygiene are strong; it rises to medium for environments with known secret-exposure risk (e.g., misconfigured environment variable exposure, committed .env files). This is a defense-in-depth gap rather than a standalone, readily exploitable critical flaw. The wildcard CPE (*:*) indicates no specific version range has been formally pinned by NVD, which introduces uncertainty about the precise scope of affected releases.

Exploit ScenarioDerived

An attacker who has obtained Strapi's jwtSecret - through a misconfigured deployment leaking environment variables, a committed .env file, or infrastructure compromise - crafts a JWT with an HS384 or HS512 algorithm header and signs it with the known secret. Submitting this non-standard token to the Strapi API succeeds because the unconfigured users-permissions plugin accepts any valid HMAC variant, granting the attacker an authenticated session as an arbitrary user including administrators. No public proof-of-concept code is identified, but the technique is well-documented in JWT algorithm confusion literature and requires minimal tooling given knowledge of the secret.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 29, 2026

JWT algorithm confusion in Strapi's users-permissions plugin enables authentication control weakening when the plugin::users-permissions.jwt.algorithm setting is absent from configuration. The plugin silently accepts HS384 and HS512 tokens alongside the intended HS256, allowing an attacker who has already obtained the jwtSecret to mint tokens using non-standard HMAC variants and bypass any algorithm-enforcement logic. No public exploit code is identified at time of analysis and this vulnerability is not listed in CISA KEV; real-world risk is substantially bounded by the prerequisite of jwtSecret compromise, reflected in the CVSS 4.0 score of 6.3 with High Complexity and Presence-of-attack-requirement modifiers.

RemediationAI

An upstream fix is available via GitHub pull request #26752 at https://github.com/strapi/strapi/pull/26752; however, a formally tagged patched release version is not independently confirmed from the available input data - operators should monitor the Strapi releases page at https://github.com/strapi/strapi for the corresponding versioned release and upgrade promptly once available. As an immediate compensating control, explicitly configure the JWT algorithm in Strapi's plugin settings by setting plugin::users-permissions.jwt.algorithm to HS256 (or RS256 if asymmetric keys are used), which removes the permissive multi-algorithm acceptance behavior; this change has no functional side effects for legitimately issued tokens. Additionally, rotate the jwtSecret as a precautionary measure if there is any possibility of prior exposure, since the vulnerability's entire threat model depends on secret compromise. Restricting access to Strapi configuration files and secrets management infrastructure limits the prerequisite attack surface independently of whether the patch has been applied.

Affected VersionsENISA

Strapi 0 <5.7.0

Affected Packages

euvd strapi fix: 5.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Strapi (cpe:2.3:a:strapi:strapi:*:*:*:*:*:*:*:*) is a widely-used open-source headless CMS and API framework for Node.js. Its users-permissions plugin handles JWT issuance and validation for user authentication flows. The root cause is CWE-327 (Use of a Broken or Risky Cryptographic Algorithm): when plugin::users-permissions.jwt.algorithm is not explicitly set, the library's default permissive behavior allows the JWT verification step to accept tokens signed with any valid HMAC variant (HS256, HS384, HS512) rather than enforcing a single configured algorithm. Algorithm confusion vulnerabilities in JWT libraries arise when the verifier relies on the algorithm field embedded in the token header rather than a server-side allowlist, creating a surface for token forgery if the signing secret is known. The CVSS 4.0 vector (AV:N/AC:H/AT:P) confirms the network-accessible attack surface but acknowledges the specific prerequisite conditions that elevate complexity.

Know when Strapi gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 4.8 MEDIUM

Network vector with high complexity captures jwtSecret prerequisite; no Strapi privileges needed; limited confidentiality and integrity impact from auth bypass; no availability or scope change.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Strapi users-permissions plugin fails to restrict JWT algorithms when plugin::users-permissions.jwt.algorithm is not explicitly configured, allowing acceptance of HS384 and HS512 tokens alongside HS256. Attackers possessing the jwtSecret can mint tokens with non-standard HMAC variants to bypass algorithm restrictions and weaken authentication controls.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular open-source headless CMS, widespread in JAMstack deployments
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Strapi

View all
CVE-2023-22894 MEDIUM POC
4.9 Apr 19

Strapi through 4.5.5 allows attackers (with access to the admin panel) to discover sensitive user details by exploiting

CVE-2023-38507 CRITICAL POC
9.8 Sep 15

Strapi is the an open-source headless content management system. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2022-27263 CRITICAL POC
9.8 Apr 12

An arbitrary file upload vulnerability in the file upload module of Strapi v4.1.5 allows attackers to execute arbitrary

CVE-2019-18818 CRITICAL POC
9.8 Nov 07

strapi before 3.0.0-beta.17.5 mishandles password resets within packages/strapi-admin/controllers/Auth.js and packages/s

CVE-2022-32114 HIGH POC
8.8 Jul 13

An unrestricted file upload vulnerability in the Add New Assets function of Strapi 4.1.12 allows attackers to conduct XS

CVE-2022-31367 HIGH POC
8.8 Sep 27

Strapi before 3.6.10 and 4.x before 4.1.10 mishandles hidden attributes within admin API responses. Rated high severity

CVE-2024-37818 HIGH POC
8.6 Jun 20

Strapi v4.24.4 was discovered to contain a Server-Side Request Forgery (SSRF) via the component /strapi.io/_next/image.

CVE-2024-34065 HIGH POC
8.1 Jun 12

Strapi is an open-source content management system. Rated high severity (CVSS 8.1), this vulnerability is remotely explo

CVE-2021-28128 HIGH POC
8.1 May 06

In Strapi through 3.6.0, the admin panel allows the changing of one's own password without entering the current password

CVE-2023-39345 HIGH POC
7.5 Nov 06

strapi is an open-source headless CMS. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no au

CVE-2023-34235 HIGH POC
7.5 Jul 25

Strapi is an open-source headless content management system. Rated high severity (CVSS 7.5), this vulnerability is remot

CVE-2023-22893 HIGH POC
7.5 Apr 19

Strapi through 4.5.5 does not verify the access or ID tokens issued during the OAuth flow when the AWS Cognito login pro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy