CVE-2016-10525 Authentication Bypass in hapi-auth-jwt2

Critical 9.8 Published Updated

Attackers can bypass authentication in hapi-auth-jwt2 when using the 'try' mode, allowing unauthorized access to protected resources.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-10525?

CVE-2016-10525 is a critical authentication bypass vulnerability in HackerOne hapi-auth-jwt2 node module, published on 29 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

When attempting to allow authentication mode `try` in hapi, hapi-auth-jwt2 version 5.1.1 introduced an issue whereby people could bypass authentication.

Weakness: CWE-287

Which versions are affected by CVE-2016-10525?

2 open source packages ship an affected version, including hapi-auth-jwt2. It affects 1 product.

PackageAffectedFixed in
hapi-auth-jwt2 npmFrom 5.1.15.1.2
hapi-auth-jwt2 npmFrom 5.1.15.1.2

Products include Dwyl Hapi-Auth-Jwt2.

How do I fix CVE-2016-10525?

Upgrade hapi-auth-jwt2 to 5.1.2 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2016-10525 being exploited?

There is no known exploitation of CVE-2016-10525 in the wild and no public exploit code.

Sources

Also known as GHSA-mg8r-9g6j-hwv9.

Is CVE-2016-10525 in your software?

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

Check your SBOMs for free