CVE-2017-16030: ReDoS via long UserAgent header in useragent
5
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55097%
CWE
Published
7/24/2018
Updated
9/6/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
useragent | npm | <= 2.1.12 | 2.1.13 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The security patch adds an isSafe check to the parse()
function entry point. The vulnerability exists in the original parse
implementation that directly processed untrusted input through regex parsers without validation. The proof of concept directly calls parse()
with a malicious payload, making this the primary vulnerable function visible in profiling. While internal regex patterns from ua-parser
might be involved, the patch only explicitly modifies the parse
function's input validation layer.