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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strapi | strapi | < 5.7.0 | 5.7.0 |
References
- Pull Issue issue-tracking
- Pull Issue issue-tracking patch
- Product Details product
- https://www.vulncheck.com/advisories/strapi-users-permissions-jwt-algorithm-confusion-via-missing-algorithm-configuration third-party-advisory