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

Status: published. Published: 2026-12-02. Updated: 2026-12-02.

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.

## Remediation

- fix: Upgrade to add-and-commit 11.1.0 or later, where the inputs are printed through a safeInfo() wrapper that applies neutralizeLogString(). On an affected version, do not interpolate event data such as a commit message, issue title or pull request title directly into the message, author_name, author_email, committer_name or committer_email inputs; pass it through an intermediate environment variable, or sanitise it in a preceding step. (source: CNA: Secur0)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Secur0) — https://github.com/EndBug/add-and-commit/commit/60ff4bbcac8250c7f49d341dd5510a1818c545c8
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Secur0) — https://github.com/EndBug/add-and-commit/pull/776

## Affected products and versions

- EndBug / add-and-commit (endbug/add-and-commit): ≥ 2.3.0; < 11.1.0 (affected, semver). Source: CNA: Secur0

## Severity and prioritization

- CVSS 4.0: 6.3 (medium); 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; source: CNA: Secur0

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-117

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/EndBug/add-and-commit/commit/60ff4bbcac8250c7f49d341dd5510a1818c545c8 (CNA: Secur0; patch)

- https://github.com/EndBug/add-and-commit/pull/776 (CNA: Secur0; patch)

- https://github.com/EndBug/add-and-commit/releases/tag/v11.1.0 (CNA: Secur0; release-notes)

- https://secur0.com/en/cna/cve-list/cve-2026-142525-add-and-commit-workflow-command-injection (CNA: Secur0; third-party-advisory, technical-description)

## Provenance

- CNA: Secur0: https://www.cve.org/CVERecord?id=CVE-2026-142525; retrieved 2026-12-02; source updated 2026-12-02

Revision: 73801e1c225be0ed7eadcce53aeaaa83b35ef82b3a9a8c9962baa0b7262353bb

Canonical: https://y2.dev/cve/CVE-2026-142525

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.