ungit@0.8.4 vulnerabilities

Git made easy

Direct Vulnerabilities

Known vulnerabilities in the ungit package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Remote Code Execution (RCE)

ungit is a version control library.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) via argument injection. The issue occurs when calling the /api/fetch endpoint. User controlled values (remote and ref) are passed to the git fetch command. By injecting some git options it was possible to get arbitrary command execution.

How to fix Remote Code Execution (RCE)?

Upgrade ungit to version 1.5.20 or higher.

<1.5.20
  • M
Command Injection

Due to the use of child_process.exec when executing git commands, ungit allows for commands to be injection from user input fields that end up in an executed git command.

Source: Node Security Project

How to fix Command Injection?

Update to the version >=0.9.0

<=0.8.4