GHSA-9w6v-m7wp-jwg4

Suggest an improvement
Source
https://github.com/advisories/GHSA-9w6v-m7wp-jwg4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-9w6v-m7wp-jwg4/GHSA-9w6v-m7wp-jwg4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9w6v-m7wp-jwg4
Aliases
Published
2020-04-29T17:58:53Z
Modified
2026-07-08T06:00:04Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
Http request which redirect to another hostname do not strip authorization header in @actions/http-client
Details

Impact

If consumers of the http-client:

  1. make an http request with an authorization header
  2. that request leads to a redirect (302) and
  3. the redirect url redirects to another domain or hostname

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:

Database specific
{
    "cwe_ids": [
        "CWE-200"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-04-29T17:58:41Z",
    "nvd_published_at": "2020-04-29T18:15:00Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / @actions/http-client

Package

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

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-9w6v-m7wp-jwg4/GHSA-9w6v-m7wp-jwg4.json"