{"id":"CVE-2026-48125","published":"2026-07-14T20:54:56Z","modified":"2026-07-15T12:55:20Z","title":"UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()`","vendor":"faisalman","product":"ua-parser-js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00523,"percentile":0.37746,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-9h5v-pfqq-x599","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/faisalman/ua-parser-js/commit/90354d3458495628b1d3ba68a9d76673e6d14fc5","tags":["x_refsource_MISC"]},{"url":"https://github.com/faisalman/ua-parser-js/releases/tag/2.0.10","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":7.55},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"faisalman","affectedVersions":[{"vendor":"faisalman","product":"ua-parser-js","versions":[">= 2.0.1, < 2.0.10"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-15T12:55:17.247452Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"ua-parser-js","vulnerableRanges":[">=2.0.1, <2.0.10"],"patched":["2.0.10"],"from":["GHSA-9h5v-pfqq-x599"],"provenance":"source"}],"summary":{"text":"UAParser.js versions 2.0.1 through 2.0.10, the browser, OS, CPU and device detection library by faisalman, contains a regular expression denial-of-service flaw in its Client Hints handling, where the device regex is applied to the Sec-CH-UA-Model value without the length limit used for User-Agent strings. An attacker who can send HTTP requests to an application calling UAParser(headers).withClientHints() can include a crafted Sec-CH-UA-Model header that triggers catastrophic backtracking, consuming excessive CPU time, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:28Z"},"euvd":{"id":"EUVD-2026-44540","exploited":false,"provenance":"source"}}