GitHub Advisoryadvisory · npm

GHSA-7r9x-hr76-jr96 Command Injection in giting

CRITICAL Published 2020-09-04 Modified 2020-08-31 Official page ↗
Ecosystem
npm
Packages
giting
Severity
Critical
Weaknesses
CWE-77
Reviewed
2020-08-31

Affected packages

• npm giting: >= 0.0.0 (no fix yet)

Description

All versions of `gitting` are vulnerable to Command Injection. The package fails to sanitize input and passes it directly to an `exec` call, which may allow attackers to execute arbitrary code in the system. The `pull` function is vulnerable through the `branch` variable. Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.

Related

Weakness · CWE (1)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness

References