CVE-2020-7735 Command Injection
Attackers can execute arbitrary commands via the styleIncludePaths option in ng-packagr, requiring an upgrade to secure the build process.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-7735?
CVE-2020-7735 is a medium-severity command injection vulnerability in ng-packagr, published on 25 Sep 2020. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
The package ng-packagr before 10.1.1 are vulnerable to Command Injection via the styleIncludePaths option.
Weakness: CWE-78
Which versions are affected by CVE-2020-7735?
2 open source packages ship an affected version, including ng-packagr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ng-packagr npm | All versions | 10.1.1 |
ng-packagr npm | All versions | 10.1.1 |
Products include Ng-Packagr Project Ng-Packagr.
How do I fix CVE-2020-7735?
Upgrade ng-packagr to 10.1.1 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2020-7735 being exploited?
There is no known exploitation of CVE-2020-7735 in the wild and no public exploit code.
Sources
Also known as GHSA-qm28-7hqv-wg5j, SNYK-JS-NGPACKAGR-1012427.