Insertion of Sensitive Information into Log File Affecting setup-php package, versions <2.37.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insertion of Sensitive Information into Log File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SETUPPHP-16874160
  • published25 May 2026
  • disclosed20 May 2026
  • creditshivammathur

Introduced: 20 May 2026

CVE NOT AVAILABLE CWE-532  (opens in a new tab)

How to fix?

Upgrade setup-php to version 2.37.1 or higher.

Overview

setup-php is a Setup PHP for use with GitHub Actions

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File via the process that configures GitHub tokens for Composer in workflows where an exact affected Composer version is pinned. An attacker can obtain sensitive authentication tokens by accessing public repository logs that may inadvertently expose these tokens during Composer's validation of github-oauth authentication, especially when Composer rejects GitHub's newer hyphen-containing token format. This is only exploitable if a workflow pins an exact affected Composer version through the process, rather than using the default or a patched Composer version.

Workaround

This vulnerability can be mitigated by avoiding the use of pinned affected Composer versions or by using patched Composer releases.

CVSS Base Scores

version 4.0
version 3.1