CVE-2026-57997 Strapi users-permissions - JWT Algorithm Confusion via Missing Algorithm Configuration

Medium 6.3 Published Updated

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.

Sources

Also known as GHSA-93c7-w42j-xh4p.

Is CVE-2026-57997 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free