cve.bz

CVE-2022-25927 ua-parser-js project ua-parser-js

7.5 highExploit referenceEPSS 1.8%Fix available

High (7.5) in ua-parser-js project ua-parser-js. EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in ua-parser-js 0.7.33, 1.0.33.

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

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.8% (unchanged from 1.8% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th 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 2025-04-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-25927 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-25927?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-25927?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-2022-25927 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 0.7.30 before 0.7.33
ua-parser-js_project:ua-parser-jsfrom 0.8.1 before 1.0.33

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fhg7-m89q-25r3npmua-parser-js>=0.7.30 <0.7.330.7.33
GHSA-fhg7-m89q-25r3npmua-parser-js>=0.8.0 <1.0.331.0.33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-ua-parser-js0.8.1+ds+~0.7.36-3DEBIAN-CVE-2022-25927
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morenode-ua-parser-jsno fix listedUBUNTU-CVE-2022-25927

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.

ProductPackageStateAdvisory
Red Hat Migration Toolkit for Containers 1.7rhmtc/openshift-migration-ui-rhel8:v1.7.8-5Fixed 2023-03-23RHSA-2023:1428
OpenShift Developer Tools and ServicesodoNot affected
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
Red Hat Ceph Storage 3grafanaOut of support scope
Red Hat Decision Manager 7ua-parser-jsOut of support scope
Red Hat Discovery 1discovery-server-containerNot affected
Red Hat Enterprise Linux 6firefoxNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7subscription-managerNot affected
Red Hat Enterprise Linux 8389-ds:1.4/389-ds-baseNot affected
Red Hat Enterprise Linux 8cockpitNot affected
Red Hat Enterprise Linux 8cockpit-appstreamNot affected
Red Hat Enterprise Linux 8cockpit-composerNot affected
Red Hat Enterprise Linux 8container-tools:rhel8/cockpit-podmanNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8subscription-managerNot affected
Red Hat Enterprise Linux 9cockpit-composerNot affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9grafanaNot affected
11 more in the JSON and on Red Hat's page.

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-2022-25927.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

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

References

Check your stackJSON