Intel

AIKIDO-2026-773803

semantic-release is vulnerable to Argument Injection

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 15, 2026
July 15, 2026

59

CVE Score

Medium

Argument Injection

Are you affected? Scan for Free

TL;DR

semantic-release passes the configured repositoryUrl (resolved from the repository field in package.json, the repositoryUrl option, or the git origin) directly as a positional argument to several git commands such as ls-remote, fetch, and push in lib/git.js. Because no -- separator precedes it, a repositoryUrl value beginning with - is interpreted by git as a command-line option rather than a URL, allowing argument injection. An attacker who controls the repository URL can supply options such as --upload-pack or --receive-pack to run an arbitrary binary during a release run. The fix rejects repositoryUrl values starting with - via a new EINVALIDREPOURL error and inserts -- before the URL in all affected git invocations.

How do I fix this?

Upgrade the semantic-release library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run semantic-release against a repository whose repositoryUrl (resolved from the repository field in package.json, the repositoryUrl option, or the git origin) is controlled by an untrusted party.

Versions

13.0.0 - 25.0.6

Fixed in 25.0.7

Background info

semantic-release is vulnerable to Argument Injection in versions 13.0.0 - 25.0.6.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea