@actions/http-client
Affected
- introduced
0, fixed1.0.8(semver)
Fixed versions
1.0.8
Fix
- Fixed version
1.0.8npm install @actions/[email protected]
Advisory
Also known as: CVE-2020-11021
Http request which redirect to another hostname do not strip authorization header in @actions/http-client
Impact
If consumers of the http-client:
The authorization header will get passed to the other domain.
Note that since this library is for actions, the GITHUB_TOKEN that is available in actions is generated and scoped per job with these permissions.
Patches
The problem is fixed in 1.0.8 at npm here. In 1.0.8, the authorization header is stripped before making the redirected request if the hostname is different.
Workarounds
None.
References
https://github.com/actions/http-client/pull/27
For more information
If you have any questions or comments about this advisory:
Medium Basis: The source's own band: MODERATE
0, fixed 1.0.8 (semver)1.0.8
1.0.8npm install @actions/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0