What’s Vulnerable › Vulnerabilities
GHSA-xc7v-wxcw-j472: Memory Exposure in tunnel-agent
- Severity: medium (CVSS 5.5)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2019-06-03 · updated 2020-08-31
- Weakness: 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.
Affected products
- Npm Tunnel-Agent: before 0.6.0 — fixed in 0.6.0
How to fix
Upgrade to a fixed version: Npm Tunnel-Agent 0.6.0. Check the vendor advisory for mitigations.
References
- https://github.com/request/tunnel-agent/commit/9ca95ec7219daface8a6fc2674000653de0922c0
- https://gist.github.com/ChALkeR/fd6b2c445834244e7d440a043f9d2ff4
- https://www.npmjs.com/advisories/598
Get alerted when GHSA-xc7v-wxcw-j472 or the next vulnerability affects your stack