Skip to content

Denial of Service in uap-core <=0.10.0 when processing crafted User-Agent strings

High
commenthol published GHSA-p4pj-mg4r-x6v4 Jan 30, 2021

Package

npm uap-core (npm)

Affected versions

<= 0.10.0

Patched versions

0.11.0

Description

Impact

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.

Patches

Please update uap-core to >= v0.11.0

Downstream packages such as uap-python, uap-ruby etc which depend upon uap-core follow different version schemes.

Severity

High

CVE ID

CVE-2021-21317

Weaknesses

No CWEs