CVE-2026-142525
Received Received - Intake

Improper Output Neutralization for Logs in add-and-commit

Vulnerability report for CVE-2026-142525, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: Secur0

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-03
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
EndBug add-and-commit From 2.3.0 (inc) to 11.1.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-117 The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an Improper Output Neutralization for Logs (CWE-117) in the add-and-commit GitHub Action. It allows attackers who control action inputs to forge GitHub Actions workflow commands in job logs by injecting line feeds into inputs like message, author names, or email fields. The core issue is that core.info() does not escape special characters, unlike other logging functions, enabling log injection attacks.

Detection Guidance

Detecting this vulnerability requires checking for improper log neutralization in GitHub Actions workflows using add-and-commit versions before 11.1.0. Inspect workflow logs for forged commands (::) or masked values appearing in cleartext. Look for unexpected line breaks in inputs like message, author_name, or author_email that could inject malicious commands.

Impact Analysis

This vulnerability could allow attackers to manipulate logs, forge annotations, or bypass masking of sensitive data in GitHub Actions workflows. For example, an attacker could inject malicious commands via issue titles or commit messages, leading to unauthorized actions, suppressed logs, or exposure of sensitive information like secrets.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by allowing unauthorized disclosure of sensitive data in logs. The flaw enables attackers to inject malicious workflow commands that suppress masking of sensitive values (e.g., via ::stop-commands::), causing secrets to be logged in cleartext. This violates data protection principles under GDPR (integrity and confidentiality) and HIPAA (access controls and audit integrity).

Mitigation Strategies

Upgrade add-and-commit to version 11.1.0 or later. Review workflow logs for forged commands or exposed secrets. Replace vulnerable workflows using core.info() for sensitive inputs with safer alternatives like core.warning() or core.error(). Disable workflows using affected versions until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142525. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...