# CVE-2026-142525: User-controlled inputs are written to the job log unescaped in add-and-commit, allowing workflow commands to be forged

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **CWE:** CWE-117
- **Published:** 2026-12-02T18:59:10.246Z
- **Modified:** 2026-12-02T22:18:35.417Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker controlling action input content can forge GitHub Actions workflow commands in job logs of the add-and-commit GitHub Action, hiding later masked secrets.

## Who should check

- Anyone running EndBug add-and-commit \>= 2.3.0, \< 11.1.0

## Description

Improper Output Neutralization for Logs (CWE-117) in add-and-commit from 2.3.0 before 11.1.0 allows a party who controls the content of an action input to forge GitHub Actions workflow commands in the job log. The action prints several inputs through core.info(), among them message at src/io.ts, author\_name and author\_email, committer\_name and committer\_email, and the working directory at src/main.ts. core.info() is implemented as process.stdout.write(message + EOL) and performs no escaping, unlike core.warning(), core.error() and core.debug(), which pass through issueCommand() and escapeData() and therefore replace carriage return and line feed with %0D and %0A. The GitHub Actions runner interprets any line on stdout that begins with ::, so a line feed inside an input ends the action's log line and starts a line the runner reads as a command. A workflow that interpolates event data into one of these inputs, which is what the documented example for message does, lets the author of an issue title, pull request title or commit message place that line feed. ::stop-commands:: ends command processing for the rest of the job, so an ::add-mask:: registered by a later step of the same job is never applied and the value it would have masked is written to the log in cleartext. Annotations can also be forged and the action's own log lines suppressed. From 11.0.0 the project carries a neutralizeLogString() helper covering the C0 and C1 ranges, DEL and the Unicode bidi controls, but it is applied in the log() helper and not on the path that prints the inputs.

## Affected and fixed versions

- EndBug add-and-commit: \>= 2.3.0, \< 11.1.0 (cvelist)

## Technologies

GitHub Actions (AI-matched)

## Mitigation

- Upgrade add-and-commit to 11.1.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142525. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142525.md
Affected: EndBug add-and-commit >= 2.3.0, < 11.1.0
Fixed in: EndBug add-and-commit 11.1.0

Steps:
1. Search this machine and project for EndBug add-and-commit: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142525 being exploited?

There is no confirmed exploitation: CVE-2026-142525 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142525?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-142525?

EndBug add-and-commit \>= 2.3.0, \< 11.1.0.

### Is there a fix for CVE-2026-142525?

Yes. Fixed in EndBug add-and-commit 11.1.0. Upgrade add-and-commit to 11.1.0 or later.

### How do I check if I'm affected by CVE-2026-142525?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/EndBug/add-and-commit/commit/60ff4bbcac8250c7f49d341dd5510a1818c545c8>
- patch: <https://github.com/EndBug/add-and-commit/pull/776>
- article: <https://secur0.com/en/cna/cve-list/cve-2026-142525-add-and-commit-workflow-command-injection>
- other: <https://github.com/EndBug/add-and-commit/releases/tag/v11.1.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142525>

HTML: <https://flawdb.com/CVE-2026-142525> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142525>
