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.
Published: 2026-12-02
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

Vendor Solution

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.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Dec 2026 19:15:00 +0000

Type Values Removed Values Added
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.
Title User-controlled inputs are written to the job log unescaped in add-and-commit, allowing workflow commands to be forged
First Time appeared Endbug
Endbug add-and-commit
Weaknesses CWE-117
CPEs cpe:2.3:a:endbug:add-and-commit:*:*:*:*:*:*:*:*
Vendors & Products Endbug
Endbug add-and-commit
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}


Subscriptions

Endbug Add-and-commit
cve-icon MITRE

Status: PUBLISHED

Assigner: Secur0

Published:

Updated: 2026-12-02T18:59:10.246Z

Reserved: 2026-12-02T17:56:54.803Z

Link: CVE-2026-142525

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-12-02T19:18:05.670

Modified: 2026-12-02T19:18:05.670

Link: CVE-2026-142525

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses
  • CWE-117

    Improper Output Neutralization for Logs