# GHSA-xc7v-wxcw-j472: Memory Exposure in tunnel-agent

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-06-03T17:08:26.000Z
- Modified: 2020-08-31T18:29:19.000Z
- Weaknesses: CWE-200

## Description

Versions of `tunnel-agent` before 0.6.0 are vulnerable to memory exposure.

This is exploitable if user supplied input is provided to the auth value and is a number.

Proof-of-concept:
```js
require('request')({
  method: 'GET',
  uri: 'http://www.example.com',
  tunnel: true,
  proxy:{
    protocol: 'http:',
    host:'127.0.0.1',
    port:8080,
    auth:USERSUPPLIEDINPUT // number
  }
});
```


## Recommendation

Update to version 0.6.0 or later.

(As written by GitHub Advisory Database.)

## Affected

- tunnel-agent (npm): before 0.6.0

## References

- <https://github.com/request/tunnel-agent/commit/9ca95ec7219daface8a6fc2674000653de0922c0> (web)
- <https://gist.github.com/ChALkeR/fd6b2c445834244e7d440a043f9d2ff4> (web)
- <https://www.npmjs.com/advisories/598> (web)

## Sources

- GitHub Advisory Database: [GHSA-xc7v-wxcw-j472](https://github.com/advisories/GHSA-xc7v-wxcw-j472), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-xc7v-wxcw-j472 · Whole record: https://cve.day/GHSA-xc7v-wxcw-j472.json · Rebuilt by cve.day 2026-11-25T22:56:47.007Z
