CVE-2026-57997
MEDIUM
4.8
CVSS 3.1
Description
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.
Metadata
Severity & Metrics
4.8
MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| strapi | strapi | — | 0 < 5.7.0 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-327 | cna | CWE-327 Use of a Broken or Risky Cryptographic Algorithm |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 6.3 | MEDIUM | 4.0 | cna | 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 |
| 4.8 | MEDIUM | 3.1 | cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
References (4)
- https://github.com/strapi/strapi/issues/26587 https://github.com/strapi/strapi/issues/26587
- https://github.com/strapi/strapi/pull/26752 https://github.com/strapi/strapi/pull/26752
- https://github.com/strapi/strapi https://github.com/strapi/strapi
- https://www.vulncheck.com/advisories/strapi-users-permissions-jwt-algorithm-confusion-via-missing-algorithm-configuration