CVE-2026-57997 Strapi users-permissions - JWT Algorithm Confusion via Missing Algorithm Configuration
Attackers with the JWT secret can bypass authentication restrictions by using non-standard HMAC algorithms if the algorithm is not explicitly configured.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-57997?
CVE-2026-57997 is a medium-severity vulnerability in strapi, published on 29 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-327
Which versions are affected by CVE-2026-57997?
It affects 1 product.
Products include Strapi Strapi.
How do I fix CVE-2026-57997?
No fix has been published for CVE-2026-57997 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-57997 being exploited?
There is no known exploitation of CVE-2026-57997 in the wild and no public exploit code.
Other vulnerabilities in strapi
- CVE-2023-22894 Strapi Cleartext Storage of Sensitive Information
- CVE-2023-22621 Strapi plugins vulnerable to Server-Side Template Injection and Remote Code Execution in the Users-Permissions Plugin
- CVE-2022-27263 Unrestricted Upload of File with Dangerous Type in Strapi
- CVE-2020-27664 Authorization bypass in Strapi
- CVE-2019-18818 Strapi allows unauthenticated attacker to reset admin password without valid reset token
Sources
Also known as GHSA-93c7-w42j-xh4p.