Description
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.
Remediation
References
https://gist.github.com/b-c-ds/6941d80d6b4e694df4bc269493b7be76
https://github.com/faisalman/ua-parser-js/commit/809439e20e273ce0d25c1d04e111dcf6011eb566
https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14
Related Vulnerabilities
CVE-2020-11979 Vulnerability in maven package org.apache.ant:ant
CVE-2023-25330 Vulnerability in maven package com.baomidou:mybatis-plus-extension
CVE-2021-43786 Vulnerability in npm package nodebb
CVE-2021-21266 Vulnerability in maven package org.openhab.addons.bundles:org.openhab.binding.sonos
CVE-2021-20293 Vulnerability in maven package org.jboss.resteasy:resteasy-core