CVE-2022-25927: High severity Ua-parser-js Project Ua-parser-js Node.js vulnerability

Published Jan 22, 2023
·
Updated

A flaw was found in ua-parser-js. This issue could allow a malicious user to trigger a regular expression denial of service (ReDoS) via the trim() function.

Other sources

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.

Affected Software

5 affected componentsFixes available
redhat/ua-parser-js<0.7.33
0.7.33
redhat/ua-parser-js<1.0.33
1.0.33
Ua-parser-js Project Ua-parser-js Node.js>=0.7.30<0.7.33
Ua-parser-js Project Ua-parser-js Node.js>=0.8.1<1.0.33
IBM Db2 Intelligence Center<=1.1.0, 1.1.1, 1.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ua-parser-js to a version that resolves this vulnerability.

    Fixed in 0.7.33
  2. Upgrade

    Upgrade redhat/ua-parser-js to a version that resolves this vulnerability.

    Fixed in 1.0.33
  3. Upgrade

    Upgrade ua-parser-js to a version that resolves this vulnerability.

    Fixed in 0.7.33
  4. Upgrade

    Upgrade ua-parser-js to a version that resolves this vulnerability.

    Fixed in 1.0.33
  5. Compensating control

    Mitigate possible ReDoS by ensuring user-controlled inputs that reach ua-parser-js trim() handling are rate-limited and bounded in size (e.g., cap request/field length) until the package is upgraded.

Event History

Jan 22, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 25, 2023
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
DescriptionSeverityWeakness
Jan 27, 2023
Data Sourced
via Red Hat·11:52 AM
DescriptionSeverityAffected Software
Dec 17, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-25927?

CVE-2022-25927 is a vulnerability in the ua-parser-js package that allows a malicious user to trigger a regular expression denial of service (ReDoS) via the trim() function.

2

What software versions are affected by CVE-2022-25927?

Versions of ua-parser-js from 0.7.30 up to, but not including, 0.7.33, and versions from 0.8.1 up to, but not including, 1.0.33 are affected by CVE-2022-25927.

3

How severe is CVE-2022-25927?

CVE-2022-25927 has a severity score of 7.5, indicating a high severity vulnerability.

4

How can I fix CVE-2022-25927?

To fix CVE-2022-25927, upgrade ua-parser-js package to version 0.7.33 or higher for versions 0.7.x and to version 1.0.33 or higher for versions 0.8.x and later.

5

Where can I find more information about CVE-2022-25927?

You can find more information about CVE-2022-25927 on the CVE website (https://www.cve.org/CVERecord?id=CVE-2022-25927) and NIST NVD (https://nvd.nist.gov/vuln/detail/CVE-2022-25927).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203