Read the docs
TI-2022-09474 Aliases CVE-2022-25927GHSA-fhg7-m89q-25r3

Regular expression denial of service in ua-parser-js

Priority HIGH 72CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 1 fixed, 10 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.

Summary

Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01774 78th percentileScored 2026-11-07
Fix Partial ua-parser-js: 0.7.33, 1.0.33ua-parser-js (npm): 0.7.33, 1.0.33Red Hat: 1 advisoryRed Hat: 1 fixed, 10 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—ua-parser-js0.7.30 to before 0.7.33; 0.8.1 to before 1.0.330.7.33, 1.0.33Patch availableCNA
—ua-parser-js (npm)0.7.30 to before 0.7.330.7.33Patch availableGHSA-fhg7-m89q-25r3
—ua-parser-js (npm)0.8.0 to before 1.0.331.0.33Patch availableGHSA-fhg7-m89q-25r3
  • ua-parser-js Vendor— Affected 0.7.30 to before 0.7.33; 0.8.1 to before 1.0.33 Fixed in 0.7.33, 1.0.33 Patch available CNA
  • ua-parser-js (npm) Vendor— Affected 0.7.30 to before 0.7.33 Fixed in 0.7.33 Patch available GHSA-fhg7-m89q-25r3
  • ua-parser-js (npm) Vendor— Affected 0.8.0 to before 1.0.33 Fixed in 1.0.33 Patch available GHSA-fhg7-m89q-25r3

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:*0.7.30 to before 0.7.33; 0.8.1 to before 1.0.33VulnerableUa-parser-js Project
  • cpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:* Versions 0.7.30 to before 0.7.33; 0.8.1 to before 1.0.33 Vulnerable ·Ua-parser-js Project

Remediation

  • Fix · CNA ua-parser-js Fixed in 0.7.33, 1.0.33
  • Fix · GHSA-fhg7-m89q-25r3 ua-parser-js (npm) Fixed in 0.7.33 Advisory →
  • Fix · GHSA-fhg7-m89q-25r3 ua-parser-js (npm) Fixed in 1.0.33 Advisory →

Red Hat 1 advisory

  • RHSA-2023:1428 Released 2023-03-23 · Red Hat rating Important
    Migration Toolkit for Containers (MTC) 1.7.8 security and bug fix update
    • 8Base-RHMTC-1.7 rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-ui-rhel8

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift Service Mesh 2.1AffectedNo fix planned: Will not fix
Red Hat Ceph Storage 3AffectedNo fix planned: Out of support scope
Red Hat Decision Manager 7AffectedNo fix planned: Out of support scope
Red Hat JBoss Data Grid 7AffectedNo fix planned: Out of support scope
Red Hat OpenShift Container Platform 3.11AffectedNo fix planned: Out of support scope
Red Hat OpenShift Container Platform 4AffectedNo fix planned: Will not fix
Red Hat OpenShift distributed tracing 2AffectedNo fix yet
Red Hat Process Automation 7AffectedNo fix planned: Out of support scope
Red Hat Storage 3AffectedNo fix planned: Will not fix
Red Hat Virtualization 4AffectedNo fix planned: Will not fix
8Base-RHMTC-1.7Fixed RHSA-2023:1428
Not affected: 8 products
  • 8Base-RHMTC-1.7
  • OpenShift Developer Tools and Services
  • Red Hat Discovery 1
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Satellite 6

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-25927
  2. 2026-10-03 Alias added: GHSA-fhg7-m89q-25r3

References

  • TI-2026-35563 UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()` CVSS 3.1MEDIUM 5.3
  • TI-2021-03090 ua-parser-js Crypto Mining backdoor CVSS 3.1HIGH 8.8
  • TI-2020-06309 Regular expression denial of service (ReDoS) in ua-parser-js CVSS 3.1HIGH 7.5
  • TI-2020-06251 Regular expression denial of service (ReDoS) in ua-parser-js CVSS 3.1HIGH 7.5
  • TI-2021-08826 ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to… CVSS 3.1HIGH 7.5

Sources