On this page (7 sections)

CVE-2026-137090 is a critical OS command injection flaw in build-git-clone, a Node.js package that clones Git repositories. According to the GitHub Advisory Database entry, versions before 1.0.4 build a shell command from the repository URL you give them, so a crafted URL can run extra commands on the machine.

If you run build scripts, deployment tools, internal dashboards or any Node.js service that accepts a repository URL from a user or an external system, check whether this package is in your dependency tree. The advisory is new and still marked unreviewed, so some details below are not yet confirmed.

What happened

The advisory was published on November 25, 2026 through the National Vulnerability Database and mirrored in the GitHub Advisory Database. It describes a flaw in the clone() function of build-git-clone. The NVD record carries the same text, so it is the same report rather than a second confirmation.

A VulnCheck advisory is also referenced, along with a source file, a commit and a pull request in the project repository. The research available to us does not state who found the flaw, and it reports no attacks in the wild.

Technical details

The advisory says the url argument is concatenated into a command that runs through sh -c. Shell metacharacters such as a semicolon or the $() construct are interpreted by the shell instead of being treated as part of a URL. Anything an attacker places there runs with the privileges of the Node.js process.

This is the classic command injection pattern (CWE-78). The root problem is mixing data and instructions: when a program hands a single string to a shell, the shell decides what is a command. Safer designs pass the program name and each argument separately, without a shell, and validate that the input really looks like a repository URL.

The CVSS v4 metrics in the advisory describe network attack vector, low attack complexity, no attack requirements, no privileges required and no user interaction. Impact on confidentiality, integrity and availability of the vulnerable system is rated high. In practice, the real-world risk depends on whether untrusted input can reach clone(). A script that only clones a hard-coded, trusted URL is much less exposed than a service that takes URLs from a form or an API.

Who is affected

Any project that depends on build-git-clone below 1.0.4 is in scope. Realistically, the highest-risk setups are:

  • Web apps or APIs that let users submit a repository URL (import, preview, deploy-from-Git features).
  • CI/CD or build tooling that reads repository URLs from pull requests, webhooks, config files or issue text an outsider can influence.
  • Internal tools where a low-privileged user can set a repository URL that a more privileged service then clones.
  • Developer machines and build servers, where code runs with access to tokens, SSH keys and deployment credentials.
The advisory lists the package ecosystem as unknown and the affected and patched version fields as unknown. The 'before 1.0.4' range comes from the vulnerability description itself. Treat 1.0.4 as the minimum safe version, and confirm against the project repository and release notes.

How to check your exposure

First, find out whether the package is installed. This read-only command lists every copy of build-git-clone in a project's dependency tree, including indirect ones. Run it in each project root; a version below 1.0.4 means you are affected.

List installed build-git-clone versions in a Node.js project (run in the project root)Shell
npm ls build-git-clone

Next, look for direct usage in your own code. This search prints each line that references the package or the clone function, so you can see whether any value from users, webhooks or external config can reach it. It is a rough pattern search and may show unrelated matches.

Search source files for build-git-clone usage, skipping node_modules (run in the project root)Shell
grep -rn "build-git-clone" --include=*.js --include=*.ts --include=*.json --exclude-dir=node_modules .

Also check lockfiles in repositories you do not run locally, such as package-lock.json or yarn.lock, for the package name and resolved version.

What to do now

  1. Run npm ls build-git-clone in every Node.js project, build image and CI runner you manage, and note which ones use a version below 1.0.4.
  2. Upgrade to 1.0.4 or later, then commit the updated lockfile and redeploy.
  3. If you cannot upgrade right away, stop passing untrusted values to clone(). Only allow URLs from an allow-list of hosts you trust, and reject any URL containing characters such as ; | & $ ( ) or backticks.
  4. Run the affected service as an unprivileged user with minimal file access, and keep deployment keys and tokens out of its environment where possible.
  5. If untrusted input could have reached clone() before the upgrade, review logs for unusual repository URLs and for unexpected processes, new files or outbound connections from the Node.js process.
  6. Rotate secrets (tokens, SSH keys, environment credentials) on any system where you find signs of abuse.

This command upgrades the package to the fixed release in a project that lists it as a direct dependency. Run it in the project root, then re-run npm ls build-git-clone and confirm the version is 1.0.4 or higher. If the package is pulled in by another dependency, update that parent package or use your package manager's override feature.

Install build-git-clone 1.0.4 as a direct dependency (run in the project root)Shell
npm install build-git-clone@1.0.4
Caution. Test the upgrade before deploying it to production. Rebuilding and restarting a service interrupts it briefly, and a newer version could change behavior your code relies on.

Detection and monitoring

Command injection often leaves quiet traces. Watch for child processes started by your Node.js service that are not git (shells, curl, wget, scripts), for repository URLs in application logs that contain shell characters, and for new outbound connections from build or app servers.

Keep dependency auditing in your pipeline so new advisories reach you quickly. Our guide on WordPress plugin vulnerabilities explains the same habit for plugins, and the principle applies to npm packages. If the affected service is a public website, a Webforta scan of a site you have verified can help you review what is exposed from the outside, though it cannot see inside your build pipeline or dependency tree.

If you suspect a server was already compromised, follow the steps in Website hacked: what to do.

What is still unknown

  • The advisory is marked unreviewed, and its package, affected-version and patched-version fields are listed as unknown.
  • No source in the research reports exploitation, and the CVE is not in CISA KEV.
  • Only one underlying report exists so far; the NVD page repeats it. Check the project's repository for release notes before relying on version details beyond 'before 1.0.4'.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-137090 - GitHub Advisory Databasegithub.com
  2. CVE-2026-137090: build-git-clone before 1.0.4 contains an OS command injection vulnerability in the clone() function that allows attackers to execute commands by supplying…nvd.nist.gov ·
  • CVE-2026-137090
  • Node.js
  • npm
  • command injection
  • supply chain