Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security vulnerability in (virtually unused) stringstream dependency #2938

Closed
benwiggins opened this issue May 14, 2018 · 5 comments
Closed

Comments

@benwiggins
Copy link

Summary

request 2.85.0 has a direct dependency on stringstream 0.0.5, which has a security vulnerability which leaks uninitialised memory.

https://snyk.io/vuln/npm:stringstream:20180511
https://hackerone.com/reports/321670

Expected Behavior

No vulnerability

Current Behavior

A vulnerable version of stringstream is installed and referenced in the request module.

(Admittedly it is unlikely it actually executes on any supported version of Node.js)

Possible Solution

stringstream is only necessary for very old versions of Node.js that are no longer supported (<0.9.4).

Pull request #2885 already exists to remove stringstream.

@simov
Copy link
Member

simov commented May 15, 2018

#2885 was merged

@simov simov closed this as completed May 15, 2018
@ChALkeR
Copy link
Contributor

ChALkeR commented May 15, 2018

@simov 2.86.x wasn't published on npm yet, and latest version published on npm still causes warnings.

@simov
Copy link
Member

simov commented May 15, 2018

I've published it: https://snyk.io/test/npm/request

@ChALkeR
Copy link
Contributor

ChALkeR commented May 15, 2018

@simov Thanks!

@mattgrande
Copy link

Including just for searchability, this was also reported in NSP: https://nodesecurity.io/advisories/664

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants