-
Notifications
You must be signed in to change notification settings - Fork 12k
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: Upgrade boom and hawk to fix hoek #10480
Comments
Is there a temporary workaround for this? any way for a library that depends on CLI to protect itself from this vulnerability? |
@literalpie we don't use it, directly or indirectly. NPM isn't smart enough to know this, so shows the vulnerability. For now it's simply a warning. We're working on it. |
Is this fixed yet ? |
It has been fixed in this commit angular/devkit@c827938 So it's fixed only in v6.0.1 of devkit which corresponds to the v6.0.1 of "@angular/cli". To have this issue fixed, you need to update "@angular/cli" to the v6.0.1. This means you'll have to update Angular to the v6. @hansl I would also make this change (cherry-pick?) angular/devkit@c827938 |
I know it's not strictly an angular-cli problem but is it possible to make an Angular 6 app without pulling in the vulnerable hoek? angular-devkit/build-angular 0.6.1 still depends on node-sass 4.9.0 which pulls the old hoek version in. |
@ration The workaround for this (if you don't want to update Angular to v6) is to add this to your devDependencies in package.json:
and check that you have there:
or higer version. And then remove node_modules to be sure and run: As a result you'll have Hoek v4.2.1 (not vulnerable) installed. |
@affilnost putting chokidar and less into the devDeps along with updating karma didn't work for me :/ |
Potential regression - vulnerable lib still installed with |
In my case this commit solved the problem (update to Angular v6) affilnost/ngx-chartist@bfb6cff |
Upgrade boom and hawk to fix hoek : Was it fixed ? |
I'm seeing the same as @adambkaplan. > rm -rf node_modules/
> rm package-lock.json
> npm install
...
>npm ls hoek
──┬ @angular-devkit/build-angular@0.6.8
└─┬ node-sass@4.9.0
└─┬ request@2.79.0
└─┬ hawk@3.1.3
├─┬ boom@2.10.1
│ └── hoek@2.16.3 deduped
├── hoek@2.16.3
└─┬ sntp@1.0.9
└── hoek@2.16.3 deduped This regression was reported 20 days ago. Is there any movement on this? Are maintainers aware of the regression? |
@hansl please reopen |
AFAIK node-sass was never fixed, so this was also never fixed.
If I understand this sass/node-sass#2252 correctly it also wont be fixed? |
GitHub's automated vulnerability checking is now finding and reporting this, both by email and on the repository page. Please reopen. |
@ration I see them working on it for v5: sass/node-sass#2355 |
npm i hoek worked for me. |
anyone solve this warning or just ignore it? |
This is fixed in node-sass@4.9.1. Could Sass be upgraded? |
I don't know if this is a workaround or a rug to sweep it under, but if you git rm package-lock.json & install dependencies with yarn install instead GitHub doesn't seem to throw this warning. |
This seems to fix it: |
I'm still getting the vulnerable version of hoek with angular-cli 6.2.3 even after doing
|
Can this issue be reopened? Looks like this still an issue |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
CLI currently uses old
Boom
andHawk
dependencies, which loads an old version ofHoek
which is vulnerable.Desired behavior
Upgrade to latest
Boom
andHawk
.The text was updated successfully, but these errors were encountered: