CVE-2021-3804 Inefficient Regular Expression Complexity in nervjs/taro
Attackers can cause denial of service in Taro applications by triggering inefficient regular expression complexity.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-3804?
CVE-2021-3804 is a high-severity denial of service vulnerability in nervjs/taro, published on 17 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
taro is vulnerable to Inefficient Regular Expression Complexity
Weakness: CWE-1333
Which versions are affected by CVE-2021-3804?
2 open source packages ship an affected version, including @tarojs/helper. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@tarojs/helper npm | All versions | 3.3.9 |
@tarojs/helper npm | All versions | 3.3.9 |
Products include Taro Taro.
How do I fix CVE-2021-3804?
Upgrade @tarojs/helper to 3.3.9 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-3804 being exploited?
There is no known exploitation of CVE-2021-3804 in the wild and no public exploit code.
Other vulnerabilities in nervjs/taro
Sources
Also known as GHSA-468q-v4jj-485h.