CVE-2021-27292: High severity Ua-parser-js Project Ua-parser-js Node.js vulnerability

Published Feb 11, 2021
·
Updated

A regular expression denial of service (ReDoS) vulnerability was found in the npm library ua-parser-js. If a supplied user agent matches the Noble string and contains many spaces then the regex will conduct backtracking, taking an ever increasing amount of time depending on the number of spaces supplied. An attacker can use this vulnerability to potentially craft a malicious user agent resulting in a denial of service.

Other sources

ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to denial of service. If an attacker sends a malicious User-Agent header, ua-parser-js will get stuck processing it for an extended period of time.

Affected Software

2 affected componentsFixes available
redhat/ua-parser-js<0.7.24
0.7.24
Ua-parser-js Project Ua-parser-js Node.js>=0.7.14<0.7.24

Event History

Feb 11, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 17, 2021
CVE Published
via MITRE·12:34 PM
Data Sourced
via MITRE·12:34 PM
Description
Mar 18, 2021
Data Sourced
via Red Hat·05:56 PM
DescriptionSeverityAffected 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-2021-27292?

CVE-2021-27292 is a regular expression denial of service (ReDoS) vulnerability in the npm library `ua-parser-js`.

2

How does CVE-2021-27292 impact me?

If you are using the affected version of `ua-parser-js` and a user agent matches the `Noble` string and contains many spaces, the regular expression may take an increasingly long time to process, leading to a potential denial of service.

3

What is the severity of CVE-2021-27292?

CVE-2021-27292 has a severity rating of 7.5, indicating a high severity.

4

How can I fix CVE-2021-27292?

To fix CVE-2021-27292, update `ua-parser-js` to version 0.7.24 or higher.

5

Where can I find more information about CVE-2021-27292?

You can find more information about CVE-2021-27292 at the following references: [GitHub Commit](https://github.com/faisalman/ua-parser-js/commit/809439e20e273ce0d25c1d04e111dcf6011eb566), [Red Hat Solution](https://access.redhat.com/solutions/5707561)

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