Angular.js: Request dependency <=2.68 opens to potential memory exposure vulnerability

Created on 28 Jul 2016  ยท  9Comments  ยท  Source: angular/angular.js

Do you want to request a _feature_ or report a _bug_?
This ticket is to report a a potential security vulnerability caused by the request dependency.

What is the current behavior?
Various of the dependencies used by angular.js make use of a vulnerable version of the request package (<2.68) that allow potential memory exposure.

Involved dependencies are: insight, fsevents

details:

In order to address a short term fix it is suggested to modify the current npm shrinkwrap to use request==2.74.0

chore

Most helpful comment

I'm updating the Karma-related dependencies in #14952, I'll add other related packages in a separate commit as well.

I doubt there's any actual big vulnerability here, though; we don't use request ourselves but via various packages and only to build stuff or connect to Sauce Labs so there may very well not be any way to exploit that.

All 9 comments

Hm...I see different packages affecting as:

  • bower (directly and via bower-registry-client)
  • dgeni-packages (via winston)
  • karma-sauce-launcher (via wd)

Although these are devDependencies, so only affecting the people working on the Angular codebase.

yes i agree; but when the relevant developers are impacted all the community is impacted.

I'm updating the Karma-related dependencies in #14952, I'll add other related packages in a separate commit as well.

I doubt there's any actual big vulnerability here, though; we don't use request ourselves but via various packages and only to build stuff or connect to Sauce Labs so there may very well not be any way to exploit that.

Ah, so it's not fixed in Bower, I just haven't noticed it as it now bundles its all dependencies itself under bower/lib/node_modules; pretty weird. TBH I'd just try to get rid of Bower in favor of npm but, unfortunately, we're relying on package aliases which is not and will not be supported by npm.

I've updated some packages; karma-sauce-launcher & bower still depend on the vulnerable request in their latest versions.

This is the current state on master:

$ npm ls request
angularjs@ ...
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ””โ”€โ”€ [email protected] 
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚   โ””โ”€โ”ฌ [email protected]
โ”‚     โ””โ”€โ”€ [email protected] 
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚   โ””โ”€โ”€ [email protected] 
โ””โ”€โ”ฌ [email protected]
  โ””โ”€โ”ฌ [email protected]
    โ””โ”€โ”€ [email protected] 

great @mgol

for what relates bower they ignored the ticket.
for what relates to karma-sauce-launcher instead i forgot to open it, i'm going to do it now.

Here are the links for keeping track of the fix of karma-sauce-launcher:

karma-sauce-launcher has fixed the dep: https://github.com/karma-runner/karma-sauce-launcher/releases/tag/v1.2.0, now we just need to update

bower will fix itself once we switch to yarn aliases

Was this page helpful?
0 / 5 - 0 ratings

Related issues

butchpeters picture butchpeters  ยท  3Comments

jtorbicki picture jtorbicki  ยท  3Comments

awerlang picture awerlang  ยท  3Comments

WesleyKapow picture WesleyKapow  ยท  3Comments

visnup picture visnup  ยท  3Comments