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

webpack-dev-server vulnerability

Open markgoho opened this issue 7 years ago • 38 comments

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
- [X] dependencies

Versions

node: 10.14.2 npm: 6.4.1

Angular CLI: 7.1.4
Node: 10.14.2
OS: win32 x64
Angular: 7.1.4
@angular-devkit/architect         0.10.7
@angular-devkit/build-angular     0.11.4
@angular-devkit/build-optimizer   0.11.4
@angular-devkit/build-webpack     0.10.7
@angular-devkit/core              7.0.7
@angular-devkit/schematics        7.1.4
@ngtools/webpack                  7.1.4
@schematics/angular               7.1.4
@schematics/update                0.11.4
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.19.1
--

Repro steps

npm install

The log given by the failure

=== npm audit security report ===                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance
High            Missing Origin Validation
Package         webpack-dev-server
Patched in      >=3.1.11
Dependency of   @angular-devkit/build-angular [dev]
Path            @angular-devkit/build-angular > webpack-dev-server
More info       https://nodesecurity.io/advisories/725
found 1 high severity vulnerability in 78596 scanned packages
1 vulnerability requires manual review. See the full report for details.
--

https://nodesecurity.io/advisories/725

markgoho avatar Jan 02 '19 02:01 markgoho

we are getting emails from GitHub to fix vulnerabilities in our angular repos this is very annoying and cause waste of time for every angular developer because there is no solution yet from what i read i understand it has low freq (as standalone attack) but nowadays its rarely for cyber attack to use just one vulnerability, but usually its a sophisticated attack using multiple vulnerabilities so you had better better fix it asap

robertIsaac avatar Jan 08 '19 20:01 robertIsaac

Hey everyone, in the tomorrow's release we'll publish this fix. The update will be available in 7.1.5.

You can follow the releases page (preferably) for updates or twitter.

mgechev avatar Jan 08 '19 20:01 mgechev

Closed via https://github.com/angular/angular-cli/commit/aeff0fb07d2fb229dbe442bb9a651698a0ad3bf0

alan-agius4 avatar Jan 08 '19 21:01 alan-agius4

FYI, Angular CLI LTS release already introduced this security fix https://github.com/angular/angular-cli/releases/tag/v6.2.9.

mgechev avatar Jan 08 '19 22:01 mgechev

FYI, Angular CLI LTS release already introduced this security fix https://github.com/angular/angular-cli/releases/tag/v6.2.9.

from https://angular.io/guide/releases

6 months of active support, during which regularly-scheduled updates and patches are released.

12 months of long-term support (LTS), during which only critical fixes and security patches are released.

so from what i understand the active should have more updates and patches than the LTS (because they will fix a bug even if its not critical), but all will have security patches

there is nothing saying if you want the most secure angular project don't go with the active and stay with LTS

robertIsaac avatar Jan 09 '19 06:01 robertIsaac

it seems that the issue is still in the 7.2.0 release?

mindstorm avatar Jan 09 '19 08:01 mindstorm

@alan-agius4 @filipesilva this fix is not included in the 7.2.0

Teamop avatar Jan 09 '19 08:01 Teamop

@Teamop, @alan-agius4 , @filipesilva

Edited to confirm that this was not included in the release.

christopher-kiss avatar Jan 09 '19 09:01 christopher-kiss

why is this issue still in 7.2.0?

julianpoemp avatar Jan 09 '19 10:01 julianpoemp

@ChristopherKiss That compare shows the changes between v7.2.0 and master right? If I am not mistaken this means changes in master after the v7.2.0 tag. It seems like it was not included to v7.2.0.

kelsos avatar Jan 09 '19 10:01 kelsos

@kelsos,

My apologies, you are correct, I misread the link on the releases page.

It was not included in 7.2.

christopher-kiss avatar Jan 09 '19 10:01 christopher-kiss

Hi all, we're looking at why this wasn't included in the 7.2 release and will probably do a new release with it later today.

filipesilva avatar Jan 09 '19 10:01 filipesilva

Not fixed in 7.2.x. 😥

dawidrylko avatar Jan 09 '19 10:01 dawidrylko

+1

Jackesparta avatar Jan 09 '19 11:01 Jackesparta

Thank you @filipesilva

johnpapa avatar Jan 09 '19 13:01 johnpapa

@angular/[email protected] and @angular-devkit/[email protected] are now released. Using these versions should remove the audit failure.

filipesilva avatar Jan 09 '19 17:01 filipesilva

@michaelsanford you can simply run npm audit fix after ng update

athlon_ua @ ~/GitHub/project - [master] $ npm audit fix
+ @angular-devkit/[email protected]
added 13 packages from 43 contributors, removed 1 package and updated 20 packages in 26.558s
fixed 1 of 1 vulnerability in 42333 scanned packages

athlonUA avatar Jan 09 '19 21:01 athlonUA

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.