Home / EndBug / add-and-commit / CVE-2026-142541
CVE-2026-142541: is it exploited, and which versions of EndBug add-and-commit are affected and fixed?
CVE-2026-142541 is an argument injection vulnerability in EndBug add-and-commit. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:39 UTC). Affected: add-and-commit from 5.0.0 before 11.0.0 (CVE record by Secur0). Fixed in 11.0.0 (CVE record by Secur0). Severity: Medium (6.3, CVSS 4.0, from Secur0).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record December 2, 2026, 21:31 UTC and NVD December 2, 2026, 23:13 UTC.
What is CVE-2026-142541?
A branch name beginning with a hyphen is parsed as a git option by add-and-commit, allowing a forced overwrite of remote history
Improper Neutralization of Argument Delimiters in a Command (CWE-88) in add-and-commit from 5.0.0 before 11.0.0 allows a party who controls the branch name a workflow passes to the action to run git checkout and git push with an option of their choosing. The new_branch input, called branch before 8.0.0, is used as a single positional value and is never passed through matchGitArgs() or validated, unlike the inputs the README documents as taking raw git arguments. src/main.ts hands it to simple-git's checkout(), which builds the argument vector ['checkout', value], and on the default push path to push(), which builds ['push', 'origin', value, '--set-upstream']. git parses every element of its argument vector for a leading hyphen wherever it appears, so a value of --force is taken as the option and not as a branch name. The two commands become git checkout --force, which discards the staged changes the action was about to commit, and git push origin --force --set-upstream, which overwrites the remote branch with the runner's local state and removes from its history any commits pushed since that checkout. git's reference name rules permit a leading hyphen, so a branch named --force can be created and pushed to a fork with git push origin HEAD:refs/heads/--force, although the git branch porcelain refuses such a name; a workflow that derives new_branch from a head branch name therefore takes the value from whoever opened the pull request. The action reports committed and pushed as true and logs that the branch already existed.
From the CVE record by Secur0, last updated December 2, 2026, 21:24 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| EndBug | add-and-commit | from 5.0.0 before 11.0.0 | 11.0.0 |
As the CVE record by Secur0 states it, last updated December 2, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-142541?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.3 | CVSS 4.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:N | Secur0 |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-142541 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, December 2, 2026)
- EPSS
- 0.69% probability of exploitation activity in the next 30 days, percentile 54.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
How do I fix it? (from the CVE record)
Upgrade to add-and-commit 11.0.0 or later, which validates new_branch with assertValidBranchName() before using it. On an affected version, do not derive new_branch from a value an outside contributor controls, such as a head branch name; where it has to be dynamic, reject any value beginning with a hyphen in a preceding step.
Where are the vendor advisories and references?
- https://github.com/EndBug/add-and-commit/commit/b4a0134716b4bf226c6b957f03ee862e961afd8d patch
- https://github.com/EndBug/add-and-commit/pull/755 patch
- https://github.com/EndBug/add-and-commit/releases/tag/v11.0.0 release-notes
- https://secur0.com/en/cna/cve-list/cve-2026-142541-add-and-commit-git-argument-injection third-party-advisory, technical-description
Who found and reported it?
- Lois del Río Somoza (finder)
- Xoán M. Otero Jorge (analyst)
- Darío Rivas (analyst)
- Secur0 CNA (coordinator)
- Federico Grandi @EndBug (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 2, 2026
- Published
- December 2, 2026, 19:18 UTC
- CVE record updated
- December 2, 2026, 21:24 UTC by Secur0
- NVD
- Received, last modified December 2, 2026, 22:18 UTC
- Last checked
- CVE list December 2, 2026, 21:31 UTC; NVD December 2, 2026, 23:13 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect add-and-commit?
- Dec 2, 2026CVE-2026-142525 EndBug add-and-commit: log injection
Questions about CVE-2026-142541
Is CVE-2026-142541 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:39 UTC. FIRST's EPSS gives it a 0.69% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of EndBug add-and-commit are affected by CVE-2026-142541?
add-and-commit from 5.0.0 before 11.0.0, per the CVE record by Secur0. The tables above give every range the sources list.
Which version fixes CVE-2026-142541?
11.0.0, per the CVE record by Secur0. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-142541?
Medium (6.3, CVSS 4.0, from Secur0). The severity table above shows each score with its source.
Where is the official record of CVE-2026-142541?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.