cve.bz

CVE-2026-48125 ua-parser-js project ua-parser-js: Uncontrolled Resource Consumption

5.3 mediumExploit referenceEPSS 0.5%Fix available

Medium (5.3) in ua-parser-js project ua-parser-js. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in ua-parser-js 2.0.10.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-07-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-48125 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-48125?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-48125?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-48125 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ua-parser-js_project:ua-parser-jsfrom 2.0.1 before 2.0.10

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9h5v-pfqq-x599npmua-parser-js>=2.0.1 <2.0.102.0.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-ua-parser-jsno fix listedDEBIAN-CVE-2026-48125
Debian14node-ua-parser-js2.0.10+ds+~cs0.3.5-1DEBIAN-CVE-2026-48125
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 3 morenode-ua-parser-jsno fix listedUBUNTU-CVE-2026-48125

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The `Sec-CH-UA-Model` header is part of the User-Agent Client Hints infrastructure. Mobile browsers send this hint to inform servers about the specific device model. Servers use the model name to tailor content, apply device-specific optimizations, or log analytics about which hardware models access a service.

A Regular Expression Denial of Service (ReDoS) vulnerability was found in the ua-parser-js npm package. By sending a crafted `Sec-CH-UA-Model` header to an application that calls `UAParser(headers).withClientHints()`, an attacker can cause the parser to spend excessive CPU time.

A single request with a ~32,000-character model value can consume over 400ms of CPU time, with parsing time growing polynomially with input length. The impact is availability only, there is no confidentiality or integrity impact.

Red Hat's mitigation

If you are managing web servers or Node.js applications that process user-agent information, you can defend against this attack vector using the following approaches:

* Apply header length restrictions (reverse proxy, WAF, application)

* Opt-out of Client Hints, avoid parsing the Sec-CH-UA-Model with ua-parser-js npm package

Upgrading to version 2.0.10+ mitigates this issue, by setting a maximum cap size of UA_MAX_LENGTH = 500.

ProductPackageStateAdvisory
Gatekeeper 3gatekeeper/gatekeeper-rhel9Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Fix deferred
Red Hat Build of Podman Desktoprh-podman-desktop.gitFix deferred
Red Hat Ceph Storage 9rhceph/alloy-rhel10Fix deferred
Red Hat Enterprise Linux 7subscription-managerFix deferred
Red Hat Hardened Imagesdotnet8.0Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-rhel9Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-consoleFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-console-rhel9Fix deferred
Red Hat OpenShift Container Platform 5openshift5/ose-console-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-48125.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON