CVE-2021-3777 Inefficient Regular Expression Complexity in daaku/nodejs-tmpl
Attackers can cause denial of service in applications using the nodejs-tmpl library 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-3777?
CVE-2021-3777 is a high-severity denial of service vulnerability in daaku/nodejs-tmpl, published on 15 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
nodejs-tmpl is vulnerable to Inefficient Regular Expression Complexity
Weakness: CWE-1333
Which versions are affected by CVE-2021-3777?
2 open source packages ship an affected version, including tmpl. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tmpl npm | All versions | 1.0.5 |
tmpl npm | All versions | 1.0.5 |
Products include Tmpl Project Tmpl.
How do I fix CVE-2021-3777?
Upgrade tmpl to 1.0.5 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-3777 being exploited?
There is no known exploitation of CVE-2021-3777 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1782781172, GHSA-jgrx-mgxx-jf9v.