Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-48125: CWE-400: Uncontrolled Resource Consumption in faisalman ua-parser-js

0
Medium
VulnerabilityCVE-2026-48125cvecve-2026-48125cwe-400cwe-1333
Published: 07/14/2026 (07/14/2026, 20:54:56 UTC)
Source: CVE Database V5
Vendor/Project: faisalman
Product: ua-parser-js

Description

UAParser.js versions 2.0.1 through 2.0.9 contain a regular expression denial-of-service (ReDoS) vulnerability when processing Client Hints headers. Specifically, a crafted Sec-CH-UA-Model header can trigger excessive CPU usage due to catastrophic backtracking in the device regex. This occurs because Client Hints values are not limited by the UA_MAX_LENGTH restriction applied to User-Agent values. The issue is fixed starting in version 2.0.10.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

ua-parser-js
pkg:npm/ua-parser-js
Affected versions
>=2.0.1 <2.0.10

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/14/2026, 21:51:42 UTC

Technical Analysis

The vulnerability in faisalman ua-parser-js affects versions from 2.0.1 up to but not including 2.0.10. When the library processes Client Hints headers via the withClientHints() method, an attacker can supply a malicious Sec-CH-UA-Model header that causes catastrophic backtracking in a regular expression used to parse device information. This leads to uncontrolled resource consumption (CPU exhaustion), constituting a regular expression denial-of-service (ReDoS) attack. The root cause is the absence of the UA_MAX_LENGTH limit on Client Hints values, unlike User-Agent values. The vulnerability is addressed in version 2.0.10.

Potential Impact

An attacker can cause excessive CPU consumption on a system using vulnerable versions of ua-parser-js by sending a specially crafted Sec-CH-UA-Model header. This results in a denial-of-service condition due to the regular expression's catastrophic backtracking. There is no impact on confidentiality or integrity, only availability is affected.

Mitigation Recommendations

Upgrade ua-parser-js to version 2.0.10 or later, where the vulnerability is fixed. No other mitigations are specified or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-20T18:46:58.291Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a56a78f68715ace43381305

Added to database: 07/14/2026, 21:18:07 UTC

Last enriched: 07/14/2026, 21:51:42 UTC

Last updated: 07/15/2026, 03:37:14 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses