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.
Problem types
Use of a Broken or Risky Cryptographic Algorithm
Product status
Any version before 5.7.0
Credits
BL4CK570RM
References
github.com/strapi/strapi/issues/26587 (Pull Issue)
github.com/strapi/strapi/pull/26752 (Pull Issue)
github.com/strapi/strapi (Product Details)
www.vulncheck.com/...ion-via-missing-algorithm-configuration