{"id":"GHSA-xc7v-wxcw-j472","aliases":["GHSA-xc7v-wxcw-j472"],"related":[],"kind":"vulnerability","state":"published","title":"Memory Exposure in tunnel-agent","summary":"Versions of `tunnel-agent` before 0.6.0 are vulnerable to memory exposure.\n\nThis is exploitable if user supplied input is provided to the auth value and is a number.\n\nProof-of-concept:\n```js\nrequire('request')({\n  method: 'GET',\n  uri: 'http://www.example.com',\n  tunnel: true,\n  proxy:{\n    protocol: 'http:',\n    host:'127.0.0.1',\n    port:8080,\n    auth:USERSUPPLIEDINPUT // number\n  }\n});\n```\n\n\n## Recommendation\n\nUpdate to version 0.6.0 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `tunnel-agent` before 0.6.0 are vulnerable to memory exposure.\n\nThis is exploitable if user supplied input is provided to the auth value and is a number.\n\nProof-of-concept:\n```js\nrequire('request')({\n  method: 'GET',\n  uri: 'http://www.example.com',\n  tunnel: true,\n  proxy:{\n    protocol: 'http:',\n    host:'127.0.0.1',\n    port:8080,\n    auth:USERSUPPLIEDINPUT // number\n  }\n});\n```\n\n\n## Recommendation\n\nUpdate to version 0.6.0 or later.","format":"markdown","source":"ghsa"}],"published":"2019-06-03T17:08:26.000Z","modified":"2020-08-31T18:29:19.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.0"}],"ecosystem":"npm","package":"tunnel-agent","purl":"pkg:npm/tunnel-agent","source":"ghsa"}],"references":[{"url":"https://github.com/request/tunnel-agent/commit/9ca95ec7219daface8a6fc2674000653de0922c0","tags":["web"],"sources":["ghsa"]},{"url":"https://gist.github.com/ChALkeR/fd6b2c445834244e7d440a043f9d2ff4","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/598","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xc7v-wxcw-j472","url":"https://github.com/advisories/GHSA-xc7v-wxcw-j472","licence":"CC-BY-4.0","modified":"2020-08-31T18:29:19.000Z"}],"updatedAt":"2026-11-25T22:56:47.007Z"}