Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M
CVE-2026-48125UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()`
Medium 5.3
In plain English
A medium-severity uncontrolled resource consumption in ua-parser-js from faisalman. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
UAParser.js is a JavaScript library to detect browsers, operating systems, CPUs, and devices from user-agent data. From 2.0.1 until 2.0.10, a regular expression denial-of-service vulnerability exists when using the Client Hints API. By sending a crafted Sec-CH-UA-Model header to an application that calls UAParser(headers).withClientHints(), an attacker can cause excessive CPU time due to catastrophic backtracking in the device regex because Client Hints values are copied without the UA_MAX_LENGTH limit used for User-Agent values. This issue is fixed in version 2.0.10.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-ua-parser-js | no fix listed | DEBIAN-CVE-2026-48125 |
| Debian:13 | node-ua-parser-js | no fix listed | DEBIAN-CVE-2026-48125 |
| Debian:14 | node-ua-parser-js | 2.0.10+ds+~cs0.3.5-1 | DEBIAN-CVE-2026-48125 |
| Ubuntu:22.04:LTS | node-ua-parser-js | no fix listed | UBUNTU-CVE-2026-48125 |
| Ubuntu:24.04:LTS | node-ua-parser-js | no fix listed | UBUNTU-CVE-2026-48125 |
| Ubuntu:26.04:LTS | node-ua-parser-js | no fix listed | UBUNTU-CVE-2026-48125 |
| Ubuntu:26.10 | node-ua-parser-js | no fix listed | UBUNTU-CVE-2026-48125 |
| npm | ua-parser-js | 2.0.10 | GHSA-9h5v-pfqq-x599 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| faisalman | ua-parser-js | >= 2.0.1, < 2.0.10 |
Weakness: CWE-400, CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L