{"id":"CVE-2016-10665","aliases":["EUVD-2019-0253","GHSA-7r2x-3qcm-8vfw"],"status":"published","title":"herbivore downloads Resources over HTTP","description":"herbivore is a packet sniffing and crafting library. Built on libtins herbivore 0.0.3 and below download binary resources over HTTP, which leaves it vulnerable to MITM attacks. It may be possible to cause remote code execution (RCE) by swapping out the requested resources with an attacker controlled copy if the attacker is on the network or positioned in between the user and the remote server.","severity":{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02155,"percentile":0.82292,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-310","CWE-311"],"published":"2018-06-04T16:00:00Z","modified":"2026-06-17T00:40:07Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"herbivore","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.0.3"}]}]},{"source":"osv","ecosystem":"npm","package":"herbivore","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.0.3"}]}]}],"products":[{"vendor":"hackerone","product":"herbivore node module"},{"vendor":"herbivore_project","product":"herbivore"}],"references":[{"url":"https://github.com/samatt/Herbivore/commit/0a041defc3463e99948e5d2064aef54b2128c5a3","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://nodesecurity.io/advisories/258","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10665","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-7r2x-3qcm-8vfw","tags":["advisory"]},{"url":"https://github.com/samatt/herbivore","tags":["web"]},{"url":"https://www.npmjs.com/advisories/258","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2016-10665","description":"herbivore is a packet sniffing and crafting library. Built on libtins herbivore 0.0.3 and below download binary resources over HTTP, which leaves it vulnerable to MITM attacks. It may be possible to cause remote code execution (RCE) by swapping out the requested resources with an attacker controlled copy if the attacker is on the network or positioned in between the user and the remote server.","status":"published","published":"2018-06-04T16:00:00Z","modified":"2024-09-16T22:20:27.726Z","cwes":["CWE-311"],"updated_at":"2026-11-02T14:33:31.450804Z"}],"euvd":[{"id":"EUVD-2019-0253","description":"herbivore is a packet sniffing and crafting library. Built on libtins herbivore 0.0.3 and below download binary resources over HTTP, which leaves it vulnerable to MITM attacks. It may be possible to cause remote code execution (RCE) by swapping out the requested resources with an attacker controlled copy if the attacker is on the network or positioned in between the user and the remote server.","status":"published","published":"2018-06-04T16:00:00Z","modified":"2024-09-16T22:20:27Z","updated_at":"2026-11-03T00:55:03.975609Z"}],"ghsa":[{"id":"GHSA-7r2x-3qcm-8vfw","title":"herbivore downloads Resources over HTTP","description":"Affected versions of `herbivore` insecurely download an executable over an unencrypted HTTP connection. \n\nIn scenarios where an attacker has a privileged network position, it is possible to intercept the response and replace the executable with a malicious one, resulting in code execution on the system running `herbivore`.\n\n\n## Recommendation\n\nThe module author has rewritten much of the package, and in that process, patched the vulnerability, but has not published any of the new code to npm.  \n\nIn order to get an updated version, it is necessary to install the package from github. This can be done using the following command:\n```\nnpm i samatt/herbivore\n```","status":"published","published":"2019-02-18T23:44:36Z","modified":"2023-09-13T22:21:26Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-311"],"updated_at":"2026-11-02T14:37:05.004935Z"}],"nvd":[{"id":"CVE-2016-10665","description":"herbivore is a packet sniffing and crafting library. Built on libtins herbivore 0.0.3 and below download binary resources over HTTP, which leaves it vulnerable to MITM attacks. It may be possible to cause remote code execution (RCE) by swapping out the requested resources with an attacker controlled copy if the attacker is on the network or positioned in between the user and the remote server.","status":"published","published":"2018-06-04T16:29:01.627Z","modified":"2026-06-17T00:40:07.677Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-311","CWE-310"],"updated_at":"2026-11-02T14:03:39.621168Z"}],"osv":[{"id":"GHSA-7r2x-3qcm-8vfw","title":"herbivore downloads Resources over HTTP","description":"Affected versions of `herbivore` insecurely download an executable over an unencrypted HTTP connection. \n\nIn scenarios where an attacker has a privileged network position, it is possible to intercept the response and replace the executable with a malicious one, resulting in code execution on the system running `herbivore`.\n\n\n## Recommendation\n\nThe module author has rewritten much of the package, and in that process, patched the vulnerability, but has not published any of the new code to npm.  \n\nIn order to get an updated version, it is necessary to install the package from github. This can be done using the following command:\n```\nnpm i samatt/herbivore\n```","status":"published","published":"2019-02-18T23:44:36Z","modified":"2023-11-08T03:58:19.048444Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-311"],"updated_at":"2026-11-02T15:46:41.349637Z"}]}}
