What’s Vulnerable › Vulnerabilities
CVE-2020-15228: Environment Variable Injection in GitHub Actions
- Severity: medium (CVSS 5.0 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-10-01 · updated 2026-06-17
- Weakness: CWE-20
Description
In the `@actions/core` npm module before version 1.2.6,`addPath` and `exportVariable` functions communicate with the Actions Runner over stdout by generating a string in a specific format. Workflows that log untrusted data to stdout may invoke these commands, resulting in the path or environment variables being modified without the intention of the workflow or action author. The runner will release an update that disables the `set-env` and `add-path` workflow commands in the near future. For now, users should upgrade to `@actions/core v1.2.6` or later, and replace any instance of the `set-env` or `add-path` commands in their workflows with the new Environment File Syntax. Workflows and actions using the old commands or older versions of the toolkit will start to warn, then error out during workflow execution.
Affected products
- Toolkit Project Toolkit: before 1.2.6 — fixed in 1.2.6
How to fix
Upgrade to a fixed version: Toolkit Project Toolkit 1.2.6. Check the vendor advisory for mitigations.
References
- http://packetstormsecurity.com/files/159794/GitHub-Widespread-Injection.html
- https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w
- http://packetstormsecurity.com/files/159794/GitHub-Widespread-Injection.html
- https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w
Get alerted when CVE-2020-15228 or the next vulnerability affects your stack