angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Vulnerability Warning Tracking Issue

Open clydin opened this issue 8 years ago • 18 comments

Two project-level development only packages currently produce vulnerability warnings upon package install of a new project.

  • [X] ~~Protractor (1 warning) -- dependency webdriver-js-extender uses an outdated version of selenium-webdriver~~ (UPDATE: Protractor 4.5.0 has been released with a fix)

  • [ ] Karma (2.0: 6 warnings) -- dependency log4js uses an outdated version of loggly. Note also that log4js (and as a result karma) produce the following deprecated package warnings upon install:

    npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See   https://nodemailer.com/status/
    npm WARN deprecated [email protected]: Use uuid module instead
    npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
    npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
    npm WARN deprecated [email protected]: This project is unmaintained
    npm WARN deprecated [email protected]: This project is unmaintained
    npm WARN deprecated [email protected]: stop using this version
    

clydin avatar May 23 '18 00:05 clydin

As for Protractor there was a discussion about updating/removing webdriver-js-extender dependency, but it is silent for a while.

devoto13 avatar May 23 '18 00:05 devoto13

We should also clarify that these vulnerabilities are not an actual security threat to Angular developers because they affect only tools used for development and not production code.

Having said that we need to resolve these issues regardless because they are confusing and ruin first time experience for Angular users.

IgorMinar avatar May 23 '18 03:05 IgorMinar

webdriver-js-extender cannot be removed since we found it is still active, therefore we have to fix it; however the fix is a breaking change might affect lots of existing tests. We are still trying to collect more information to make sure it is ok to make the change. The fix PR is here

qiyigg avatar May 23 '18 04:05 qiyigg

So npm audit fix --force is not the way to go? Coz it fixes everything and the builds still work :)

brgrz avatar May 24 '18 12:05 brgrz

Can someone please get the potential PR moving and get it fixed? This is breaking our protractor pipeline because the vulnerability is considered as an "error".

rajarshi-singh avatar Jun 10 '18 21:06 rajarshi-singh

that work for me : npm set audit false

hodo92 avatar Jun 12 '18 14:06 hodo92

Since the author of the original PR went on vacation and never came back, I have replicated those changes in a new PR here: https://github.com/angular/webdriver-js-extender/pull/20

Someone please take a look.

rajarshi-singh avatar Jun 14 '18 21:06 rajarshi-singh

Any updates on this? I understand it is really only a dev environment issue, but my team is currently reviewing Angular and Vue to decide which to use in a new project. I'm team Angular - but this looks pretty bad straight out of the box in the 'getting started'

lightswitch05 avatar Jul 08 '18 14:07 lightswitch05

I think it will probably be fixed within the next weeks as the pull request these guys were working was finally merged 4 days ago.

d0vi avatar Jul 10 '18 07:07 d0vi

I'm getting the same. This is great when you are trying to learn Angular for a new job which starts in three days.

npm WARN using --force I sure hope you know what you are doing. npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/ npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0 npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0 npm WARN deprecated [email protected]: This project is unmaintained npm WARN deprecated [email protected]: This project is unmaintained npm WARN deprecated [email protected]: stop using this version ⸨ ░░░░░░⸩ ⠹ extract:uws: sill extract [email protected]

cahilld avatar Jul 17 '18 11:07 cahilld

@clydin Protractor just released 4.5.0 which contains fixes for this. Could we try upgrading and see what happens?

hansl avatar Jul 18 '18 20:07 hansl

According to karma-runner/karma#3016, log4js@2 will be dropped in karma@3.

sarunint avatar Jul 19 '18 00:07 sarunint

In case it is useful, here is an issue for npm audit focused on the ability to ignore dev dependencies. It wouldn't stop (for example) the github security warning, but might be part of the solution.

michaelmcandrew avatar Jul 24 '18 17:07 michaelmcandrew

I've created a new project with angular CLI 6.0.8 and it comes with these vulnerabilities reported by github out of the box:

adm-zip 0.0.4
hoek 2.16.3
parsejson 0.0.3

Created project with command line: projectRoot> ng new intro-angular-layouts -g -f --directory .

Sample repo: https://github.com/NexulAcademy/intro-angular-layouts

michael-lang avatar Aug 09 '18 17:08 michael-lang

+1

PedroRuiz avatar Aug 14 '18 20:08 PedroRuiz

I have fixed all the warnings by upgrading the karma to version 3.0.0

run npm i [email protected] --save

proof

found 12 vulnerabilities (9 low, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details

user@DESKTOP-L33 MINGW64 ~/Documents/Develop/Work/myApp/front-end (develop)
$ npm i [email protected] --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected]
added 15 packages from 53 contributors, removed 32 packages, updated 22 packages and audited 22939 packages in 8.807s
found 0 vulnerabilities

Georgehatouts avatar Aug 17 '18 08:08 Georgehatouts

@Georgehatouts tones of thanks man!!!!

PedroRuiz avatar Aug 19 '18 18:08 PedroRuiz

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.