CVE-2021-21317
Uap-core Project Uap-core vulnerability
uap-core in an open-source npm package which contains the core of BrowserScope's original user agent string parser. In uap-core before version 0.11.0, some regexes are vulnerable to regular expression denial of service (REDoS) due to overlapping capture groups. This allows remote attackers to overload a server by setting the User-Agent header in an HTTP(S) request to maliciously crafted long strings. This is fixed in version 0.11.0. Downstream packages such as uap-python, uap-ruby etc which depend upon uap-core follow different version schemes.
Affected products
Uap-core. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Uap-core Project Uap-core runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6ae96c · Patch
- github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4 · Third Party Advisory
- www.npmjs.com/package/uap-core · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-21317
- cve.org/CVERecord?id=CVE-2021-21317
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.