First published: Thu 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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Ua-parser-js Project Ua-parser-js | >=0.7.14<0.7.24 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2021-27292 is a regular expression denial of service (ReDoS) vulnerability in the npm library `ua-parser-js`.
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.
CVE-2021-27292 has a severity rating of 7.5, indicating a high severity.
To fix CVE-2021-27292, update `ua-parser-js` to version 0.7.24 or higher.
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)