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

yarn nsp-check is failing re: tough-cookie ReDOS #3195

Closed
muffinresearch opened this issue Sep 21, 2017 · 5 comments · Fixed by #4028
Closed

yarn nsp-check is failing re: tough-cookie ReDOS #3195

muffinresearch opened this issue Sep 21, 2017 · 5 comments · Fixed by #4028

Comments

@muffinresearch
Copy link
Contributor

muffinresearch commented Sep 21, 2017

This is due to https://nodesecurity.io/advisories/525

Running locally to get the extended tree shows tough-cookie is coming in via:

mozilla-addons-frontend@0.0.1 > jsdom@11.2.0 > request-promise-native@1.0.4 > tough-cookie@2.3.2

I think this being a dep of jsdom would mean this should only impacts tests if at all. This needs to be confirmed.

The upstream issue is: salesforce/tough-cookie#92

@tphan18
Copy link

tphan18 commented Sep 21, 2017

I have the same vulnerability report this morning from a bunch of dependencies like

react-scripts@1.0.13 > jest@20.0.4 > jest-cli@20.0...

@kumar303
Copy link
Contributor

Looks like we don't have any patches yet. We should probably get master back to green so we don't miss any unrelated failures. This should do it in a .nsprc:

{
  "exceptions": ["https://nodesecurity.io/advisories/525"]
}

@kumar303
Copy link
Contributor

When we get an upstream fix, let's remove the exception added in #3211

@g-k
Copy link

g-k commented Sep 27, 2017

This is fixed upstream in tough-cookie 2.3.3 and request pulls that fix in for version 2.83.0.

@kumar303
Copy link
Contributor

I think this being a dep of jsdom would mean this should only impacts tests if at all.

I also see us using tough-cookie for chokidar which is just a file watcher which we use purely for development.

$ npm ls tough-cookie
mozilla-addons-frontend@0.0.1 /Users/kumar/dev/addons-frontend
├─┬ chokidar-cli@1.2.0
│ └─┬ chokidar@1.7.0
│   └─┬ fsevents@1.1.2
│     └─┬ node-pre-gyp@0.6.36
│       └─┬ request@2.81.0
│         └── tough-cookie@2.3.2
├─┬ jsdom@11.2.0
│ └── tough-cookie@2.3.2
├── UNMET PEER DEPENDENCY react@15.6.2
├── UNMET PEER DEPENDENCY react-redux@5.0.6
└── UNMET PEER DEPENDENCY webpack@3.1.0

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

Successfully merging a pull request may close this issue.

6 participants