add-and-commit · Improper Neutralization of Argument Delimiters
Source GCVE Database
Not known to be exploited · CVSS 6.3 Medium : upgrade to 11.0.0 when convenient.
Data as of 2 Dec 2026, 22:30 UTC
Thin evidence
One scorer or none| CNA (Secur0) | CVSS 4.0 | 6.3 |
|---|
- Patch
- Available – fixed in 11.0.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Upgrade add-and-commit to 11.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| EndBugadd-and-commit | Affected
| Fixed in
|
GitHubadd-and-commitpkg:github/add-and-commitOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid using untrusted branch names as inputs to this action or sanitize branch names to prevent leading hyphens. Review workflows to ensure branch names cannot be controlled by untrusted parties or that inputs are validated before use.
Description
A vulnerability exists in the add-and-commit action versions from 5.0.0 before 11.0.0 where improper neutralization of argument delimiters allows a malicious branch name to inject git command options. This can cause unintended git checkout and git push commands with options like --force, leading to discarded staged changes and overwritten remote branches. The branch name input is not validated or sanitized, enabling this behavior when a branch name starts with a hyphen. The action incorrectly reports success even when destructive commands are executed.
References
- nvd.nist.gov/vuln/detail/CVE-2026-142541 (opens in a new tab)
- github.com/EndBug/add-and-commit/pull/755 (opens in a new tab)
- github.com/EndBug/add-and-commit/commit/b4a0134716b4bf226c6b957f03ee862e961afd8d (opens in a new tab)
- github.com/EndBug/add-and-commit/releases/tag/v11.0.0 (opens in a new tab)
- secur0.com/en/cna/cve-list/cve-2026-142541-add-and-commit-git-argument-injection (opens in a new tab)