{"id":"CVE-2020-11021","aliases":["CVE-2020-11021","GHSA-9w6v-m7wp-jwg4"],"related":[],"kind":"vulnerability","state":"published","title":"HTTP request which redirect to another hostname do not strip authorization header in Actions Http-Client","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nIf consumers of the http-client:\n  1. make an http request with an authorization header\n  2. that request leads to a redirect (302) and\n  3. the redirect url redirects to another domain or hostname \n\nThe authorization header will get passed to the other domain.\n\nNote that since this library is for actions, the GITHUB_TOKEN that is available in actions is generated and scoped per job with [these permissions](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token).\n\n### Patches\nThe problem is fixed in 1.0.8 at [npm here](https://www.npmjs.com/package/@actions/http-client).  In 1.0.8, the authorization header is stripped before making the redirected request if the hostname is different.\n\n### Workarounds\nNone.\n\n### References\nhttps://github.com/actions/http-client/pull/27\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/actions/http-client/issues","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2020-04-29T17:58:53.000Z","modified":"2026-07-08T06:00:04.038Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"< 1.0.8","status":"affected"}],"vendor":"actions","product":"http-client","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.8"}],"ecosystem":"npm","package":"@actions/http-client","purl":"pkg:npm/%40actions/http-client","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.8"}],"vendor":"http-client_project","product":"http-client","cpe":"cpe:2.3:a:http-client_project:http-client:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/actions/http-client/security/advisories/GHSA-9w6v-m7wp-jwg4","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/actions/http-client/pull/27","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/actions/http-client/commit/f6aae3dda4f4c9dc0b49737b36007330f78fd53a","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11021","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/actions/http-client","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-11021","url":"https://www.cve.org/CVERecord?id=CVE-2020-11021","licence":"CVE Terms of Use","modified":"2024-08-04T11:21:14.534Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9w6v-m7wp-jwg4","url":"https://github.com/advisories/GHSA-9w6v-m7wp-jwg4","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:04.038Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-11021","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11021","licence":"Public domain","modified":"2026-06-17T02:48:52.480Z"}],"updatedAt":"2026-11-25T22:57:52.230Z","epss":{"score":0.01781,"percentile":0.7891,"date":"2026-12-01T12:00:22.000Z"}}