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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.5%top 55.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12node-ua-parser-jsno fix listedDEBIAN-CVE-2026-48125
Debian:13node-ua-parser-jsno fix listedDEBIAN-CVE-2026-48125
Debian:14node-ua-parser-js2.0.10+ds+~cs0.3.5-1DEBIAN-CVE-2026-48125
Ubuntu:22.04:LTSnode-ua-parser-jsno fix listedUBUNTU-CVE-2026-48125
Ubuntu:24.04:LTSnode-ua-parser-jsno fix listedUBUNTU-CVE-2026-48125
Ubuntu:26.04:LTSnode-ua-parser-jsno fix listedUBUNTU-CVE-2026-48125
Ubuntu:26.10node-ua-parser-jsno fix listedUBUNTU-CVE-2026-48125
npmua-parser-js2.0.10GHSA-9h5v-pfqq-x599

Affected products (as reported)

VendorProductVersions
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

References