GHSA-mfwh-5m23-j46w

Suggest an improvement
Source
https://github.com/advisories/GHSA-mfwh-5m23-j46w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/10/GHSA-mfwh-5m23-j46w/GHSA-mfwh-5m23-j46w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mfwh-5m23-j46w
Aliases
Published
2020-10-01T17:16:20Z
Modified
2026-05-04T08:46:03.568992698Z
Severity
  • 3.5 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N CVSS Calculator
Summary
Environment Variable Injection in GitHub Actions
Details

Impact

The @actions/core npm module 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.

Patches

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.

Workarounds

None, it is strongly suggested that you upgrade as soon as possible.

For more information

If you have any questions or comments about this advisory: * Open an issue in Actions Toolkit

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2020-10-01T17:16:10Z",
    "cwe_ids": [
        "CWE-20",
        "CWE-77"
    ],
    "severity": "LOW",
    "nvd_published_at": "2020-10-01T18:15:00Z"
}
References

Affected packages

npm / @actions/core

Package

Name
@actions/core
View open source insights on deps.dev
Purl
pkg:npm/%40actions/core

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/10/GHSA-mfwh-5m23-j46w/GHSA-mfwh-5m23-j46w.json"