CVE-2020-15228
MEDIUM 5.0CVSS 3.1Environment Variable Injection in GitHub Actions
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.
- Published
- 1 Oct 2020
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-77
- Also known as
- GHSA-mfwh-5m23-j46w
- Sources
- NVDJSONOSV GHSA-mfwh-5m23-j46wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | toolkit_project | toolkitcpe:2.3:a:toolkit_project:toolkit:*:*:*:*:*:node.js:*:* |
< 1.2.6 | 1.2.6 |
| OSV | npm | @actions/core | < 1.2.6 | 1.2.6 |
References
- http://packetstormsecurity.com/files/159794/GitHub-Widespread-Injection.html · Exploit, Third Party Advisory, VDB Entry, WEB
- https://github.com/actions/toolkit/security/advisories/GHSA-mfwh-5m23-j46w · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-15228 · ADVISORY
- https://github.com/actions/toolkit · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Oct 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Oct 2020)