Skip to content
Fencer Vulns
medium 5.3

CVE-2022-25927 json

ReDoS Vulnerability in ua-parser-js version

published 2023-01-24 3 y ago modified 2026-06-17 4 mo ago also GHSA-fhg7-m89q-25r3 , EUVD-2023-0457

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.8%
EPSS 1.8% chance of exploitation in 30 days, percentile 78%
public exploits
0
none known

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.

Patch / fix

  • npm ua-parser-js 0.7.33, 1.0.33
  • n/a ua-parser-js 0.7.33, 1.0.33
  • node-ua-parser-js Debian 14, Debian 13, Debian 12 0.8.1+ds+~0.7.36-3

debian advisories DEBIAN-CVE-2022-25927

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-25927 updated cvss 7.5

ua-parser-js: ReDoS vulnerability via the trim() function

  • Red Hat OpenShift Service Mesh 2.1 servicemesh-grafana
    affected: no fix planned “Will not fix”
  • Red Hat Ceph Storage 3 grafana Red Hat Decision Manager 7 ua-parser-js Red Hat JBoss Data Grid 7 ua-parser-js Red Hat OpenShift Container Platform 3.11 openshift3/ose-console
    affected: no fix planned “Out of support scope”
  • Red Hat OpenShift Container Platform 4 openshift4/ose-console
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-query-rhel8, rhosdt/jaeger-all-in-one-rhel8
    affected: no fix available
  • Red Hat Process Automation 7 ua-parser-js
    affected: no fix planned “Out of support scope”
  • Red Hat Storage 3 grafana Red Hat Virtualization 4 cockpit-ovirt-uiplugin, cockpit-ovirt-dashboard
    affected: no fix planned “Will not fix”
  • Red Hat Migration Toolkit 1.7 rhmtc/openshift-migration-ui-rhel8 v1.7.8-5
    fixed: vendor fix RHSA-2023:1428
  • Red Hat OpenShift Developer Tools and Services odo Red Hat Discovery 1 discovery-server-container Red Hat Enterprise Linux 6 firefox Red Hat Enterprise Linux 7 firefox, rhsm-gtk, python-syspurpose, subscription-manager, subscription-manager-gui, subscription-manager-rhsm, +6 more Red Hat Enterprise Linux 8 cockpit, grafana, mozjs60, rhsm-gtk, cockpit-ws, rhsm-icons, +38 more Red Hat Enterprise Linux 9 gjs, polkit, grafana, polkit-libs, grafana-selinux, cockpit-composer
    +2 more products
    Red Hat Migration Toolkit 1.7 rhmtc/openshift-velero-plugin-rhel8 v1.7.8-3, rhmtc/openshift-migration-velero-rhel8 v1.7.8-4, rhmtc/openshift-migration-openvpn-rhel8 v1.7.8-3, rhmtc/openshift-migration-registry-rhel8 v1.7.8-3, rhmtc/openshift-migration-rhel8-operator v1.7.8-10, rhmtc/openshift-migration-controller-rhel8 v1.7.8-6, +10 more Red Hat Satellite 6 subscription-manager, nodejs-react-fontawesome, python3-subscription-manager-rhsm
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
19 mo ago

Exploit prediction

1.77% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • security.snyk.io https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
npm ua-parser-js
>=0.7.30, <0.7.33
>=0.8.0, <1.0.33
0.7.33
1.0.33

Affected products

  • n/a ua-parser-js

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity
  • CWE-400 Uncontrolled Resource Consumption

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.