6.3medium
HTTP request which redirect to another hostname do not strip authorization header in Actions Http-Client
- Severity
- 6.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.78% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9w6v-m7wp-jwg4
Description
Actions Http-Client (NPM @actions/http-client) before version 1.0.8 can disclose Authorization headers to incorrect domain in certain redirect scenarios. The conditions in which this happens are 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 Then the authorization header will get passed to the other domain. The problem is fixed in version 1.0.8.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| actions http-client | < 1.0.8 | CVE List |
| @actions/http-client (npm) | before 1.0.8 | GitHub Advisory Database |
| http-client_project http-client | before 1.0.8 | NVD |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
Actions Http-Client (NPM @actions/http-client) before version 1.0.8 can disclose Authorization headers to incorrect domain in certain redirect scenarios. The conditions in which this happens are 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 Then the authorization header will get passed to the other domain. The problem is fixed in version 1.0.8.
GitHub Advisory Database
Impact
If consumers of the http-client:
- make an http request with an authorization header
- that request leads to a redirect (302) and
- 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:
- Open an issue in https://github.com/actions/http-client/issues
NVD (es)
Actions Http-Client (NPM @actions/http-client) versiones anteriores a 1.0.8, puede revelar los encabezados de Autorización en dominios incorrectos en determinados escenarios de redireccionamiento. Las condiciones en las que esto ocurre son si los consumidores del http-client: 1. hacen una petición http con un encabezado de autorización 2. esa petición conduce a un redireccionamiento (302) y 3. la URL de redireccionamiento redirecciona a otro dominio o nombre de host. Entonces el encabezado de autorización se pasará al otro dominio. El problema se corrigió en la versión 1.0.8.
References
| https://github.com/actions/http-client/security/advisories/GHSA-9w6v-m7wp-jwg4 | third-party-advisory, web | |
| https://github.com/actions/http-client/pull/27 | patch, third-party-advisory, web | |
| https://github.com/actions/http-client/commit/f6aae3dda4f4c9dc0b49737b36007330f78fd53a | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-11021 | advisory | |
| https://github.com/actions/http-client | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-11021 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9w6v-m7wp-jwg4 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-11021 changed 2026-06-17 | Public domain |