How npm is affected by the recently disclosed git vulnerability

Severity: Info
Category: Security
Service: npm

This summary is created by Generative AI and may differ from the actual content.

Overview

The npm blog has been discontinued. Updates from the npm team are now published on the GitHub Blog and the GitHub Changelog. npm cli users should make sure that they have git version 2.17.1 or later installed to protect against a recent code execution vulnerability involving git submodules.

Impact

N/A

Trigger

a flaw in how git submodules are handled

Detection

N/A

Resolution

N/A

Root Cause

The npm cli supports git dependencies; to enable this it delegates the act of cloning these dependencies to the git command. Because of this delegation, if the system has a vulnerable version of git installed the npm cli, it could be tricked into installing a git dependency of a malicious repo that could execute code on the user's system.