CVE-2018-11537: Auth0 angular-jwt misinterprets allowlist as regex
6.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.63329%
CWE
Published
5/14/2022
Updated
10/19/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
angular-jwt | npm | < 0.1.10 | 0.1.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how the whiteListedDomains
array was processed. In the original code, non-RegExp entries were converted to case-insensitive regex patterns (e.g., new RegExp(domain, 'i')
). This caused domain strings like 'whitelisted.Example.com' to match 'whitelistedXexample.com' due to the unescaped '.' acting as a regex wildcard. The patch replaced this logic with strict string equality checks for non-RegExp entries, confirming the root cause was in the regex conversion step. The affected code is located in the interceptor's domain validation loop, specifically in the logic handling whiteListedDomains
entries.