Summary
build-git-clone versions before 1.0.4 contain an OS command injection vulnerability in the clone() function via the repository URL. It has been assigned CVE-2026-137090 and a CVSS 4.0 score of 9.3 (critical).
What happened
The clone() function in build-git-clone incorporates the repository URL argument into a command that is run through sh -c. An attacker who supplies a crafted URL containing shell metacharacters can cause operating system commands to be executed. The weakness is classified as CWE-78 (OS command injection).
Why it matters
Commands run with the privileges of the Node.js process that uses the library. The CVSS 4.0 score of 9.3 (critical severity), assigned by VulnCheck as CNA, corresponds to the vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N, which indicates network access, low complexity, no privileges or user interaction required, and high impact on confidentiality, integrity and availability. The source does not indicate active exploitation of this vulnerability.
Affected products and versions
Product build-git-clone, from vendor emanuelmoraes-dev: versions before 1.0.4 (< 1.0.4).
| Product | Versions | Fixed in |
|---|---|---|
| emanuelmoraes-dev build-git-clone | < 1.0.4 | — |
Action recommended by the source
The source does not state an explicit recommendation or a separate fixed version. The official references include a commit and a pull request tagged as patches in the vendor's repository, as well as a VulnCheck advisory; readers are advised to consult them for details of the fix.
Sources and references
- https://github.com/emanuelmoraes-dev/build-git-clone/commit/3d55e64e5b7c61e560b5d030d6a918cad5c67a29 — CVE Program
- https://github.com/emanuelmoraes-dev/build-git-clone/pull/1 — CVE Program
- https://github.com/emanuelmoraes-dev/build-git-clone/blob/68bc305028d04c9a71a030c4b0b5cc36450201b9/src/index.ts#L77 — CVE Program
- https://www.vulncheck.com/advisories/build-git-clone-before-1.0.4-os-command-injection-in-clone-via-repository-url — CVE Program
Weaknesses (CWE): CWE-78
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.