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.
References
| Link | Resource |
|---|---|
| https://github.com/strapi/strapi | Product |
| https://github.com/strapi/strapi/issues/26587 | Issue Tracking |
| https://github.com/strapi/strapi/pull/26752 | Issue Tracking Patch |
| https://www.vulncheck.com/advisories/strapi-users-permissions-jwt-algorithm-confusion-via-missing-algorithm-configuration | Patch Third Party Advisory |
Configurations
History
No history.
Information
Published : 2026-06-29 22:16
Updated : 2026-07-01 15:17
NVD link : CVE-2026-57997
Mitre link : CVE-2026-57997
CVE.ORG link : CVE-2026-57997
JSON object : View
Products Affected
strapi
- strapi
CWE
CWE-327
Use of a Broken or Risky Cryptographic Algorithm
