CVE-2026-142541
Last modified
CVE-2026-142541 is a medium-severity vulnerability rated 6.3/10 on the CVSS scale. 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.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| EndBug | add-and-commit | >= 5.0.0, < 11.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142541?
How severe is CVE-2026-142541?
How do I fix CVE-2026-142541?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-142524A weakness has been identified in Dipali-Patil-11 Orphanage_…7.3
- CVE-2026-142525Improper Output Neutralization for Logs (CWE-117) in add-and…6.3
- CVE-2026-142526A flaw has been found in livealvi Car-Rental-Service-Php-Pro…7.3
- CVE-2026-142527A vulnerability has been found in OPTIMUM-LINKUP Latest-Opti…4.7
- CVE-2026-14253Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-14254A race condition in the account lockout mechanism in Delphix…8.3
- CVE-2026-142549JWTKit is a Swift library for signing and verifying JSON Web…4.9
- CVE-2026-14255A maliciously crafted IFC file, when parsed through certain …5.5
- CVE-2026-142550JWTKit is a Swift library for signing and verifying JSON Web…7.5
- CVE-2026-142551JWTKit is a Swift library for signing and verifying JSON Web…8.1
- CVE-2026-14256ELAN reported a potential out-of-bounds write vulnerability …4.7
- CVE-2026-14257brace-expansion through 5.0.7 is vulnerable to denial of ser…7.5
Are you affected by CVE-2026-142541?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
