CVE-2016-10525:
Authentication Bypass in hapi-auth-jwt2
9.8
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6371%
CWE
Published
2/18/2019
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
hapi-auth-jwt2 | npm | = 5.1.1 | 5.1.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from how the 'try' authentication mode was handled. The code path for missing tokens in non-'required' modes (like 'try') returned empty credentials while still marking the request as authenticated. This was fixed in 5.1.2 by removing the early return that set empty credentials, ensuring proper authentication checks. The GitHub issue #111 and PR #112 demonstrate this logic flaw in the authentication handler function()
.