Read the docs

Unescaped inputs in add-and-commit allow forged workflow commands

Priority LOW 29CWE-117Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

The add-and-commit GitHub Action from 2.3.0 before 11.1.0 writes action inputs to the job log without neutralizing line feeds (CWE-117). A party who controls an input's content, such as an issue title or commit message interpolated into the message input, can insert a line feed and forge GitHub Actions workflow commands in the job log. A forged ::stop-commands:: stops later add-mask registrations from taking effect, so masked values can appear in the log in cleartext.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

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.

Why it matters now

EPSS 0.00664 53rd percentileScored 2026-12-04
Fix Fixed add-and-commit (EndBug): 11.1.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
EndBugadd-and-commit2.3.0 to before 11.1.011.1.0Patch availableCNA
  • add-and-commit VendorEndBug Affected 2.3.0 to before 11.1.0 Fixed in 11.1.0 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:endbug:add-and-commit:*:*:*:*:*:*:*:*——EndBug
  • cpe:2.3:a:endbug:add-and-commit:*:*:*:*:*:*:*:* Versions — — ·EndBug

Remediation

Update add-and-commit to version 11.1.0. Versions from 2.3.0 before 11.1.0 are affected.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA add-and-commit (EndBug) Fixed in 11.1.0

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-12-02 Threatist record created from CVE-2026-142525
  2. 2026-12-02 Alias added: GHSA-g596-xppf-m73p
  3. 2026-12-04 Affected versions changed · Red Hat
  4. 2026-12-04 CVSS score added · Red Hat

References

  • TI-2026-104184 add-and-commit commits nested repositories as gitlinks from outside input CVSS 4.0MEDIUM 6.3
  • TI-2026-102550 Branch name parsed as git option in add-and-commit allows forced push CVSS 4.0MEDIUM 6.3

Sources