OS command injection in git-diff-apply
Summary
CVE-2019-10776: OS command injection in git-diff-apply. Affects git-diff-apply versions < 0.22.2. Fixed in 0.22.2. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
In "index.js" file line 240, the run command executes the git command with a user controlled variable called remoteUrl. This affects git-diff-apply all versions prior to 0.22.2.
How To Fix
Latest published version: 8.1.0 as of 23 Oct 2026
npm install git-diff-apply@8.1.0
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.22.2
This is the first release that contains the fix.
npm install git-diff-apply@0.22.2
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →