CVE-2020-7735
JavaScript vulnerability analysis and mitigation

Overview

The package ng-packagr before version 10.1.1 contained a Command Injection vulnerability via the styleIncludePaths option. This vulnerability was assigned CVE-2020-7735 (CVE Details).

Technical details

The vulnerability exists in the stylesheet-processor.ts file where the execSync function was used with string concatenation for the LESS compiler command. This implementation allowed for potential command injection through the styleIncludePaths option. The fix involved replacing execSync with execFileSync and properly handling command arguments to prevent injection attacks (GitHub Commit).

Impact

If exploited, this vulnerability could allow an attacker to execute arbitrary commands on the system where ng-packagr is being used during the build process. This could potentially lead to system compromise or unauthorized access to sensitive information.

Exploitability

The vulnerability can be exploited by providing malicious input through the styleIncludePaths option when using ng-packagr with LESS stylesheets. An attacker would need to have the ability to modify the build configuration or inject malicious style include paths.

Mitigation and workarounds

Users should upgrade to ng-packagr version 10.1.1 or later which contains the fix for this vulnerability. The fix properly handles command arguments using execFileSync instead of string concatenation with execSync, preventing command injection possibilities (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2021-43309HIGH7.5
  • JavaScript logoJavaScript
  • uri-template-lite
NoYesAug 24, 2022
CVE-2022-24375HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 24, 2022
CVE-2022-25231HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 23, 2022
CVE-2022-21208HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 23, 2022
CVE-2022-2932MEDIUM6.1
  • JavaScript logoJavaScript
  • mobiledoc-kit
NoYesAug 22, 2022

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management