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

@angular-devkit/build-angular dependency [email protected] uses [email protected] which has npm vulnerability 1693

Open ap-buf opened this issue 5 years ago • 12 comments

└─┬ @angular-devkit/[email protected] ├─┬ [email protected] │ └── [email protected] deduped ├── [email protected] └─┬ [email protected] └── [email protected]

https://www.npmjs.com/advisories/1693

ap-buf avatar May 10 '21 21:05 ap-buf

Closed via https://github.com/angular/angular-cli/pull/20737

alan-agius4 avatar May 12 '21 17:05 alan-agius4

Does this solve the problem in older Angular versions? V9 also has the same problem.

synga avatar May 12 '21 20:05 synga

Does this solve the problem in older Angular versions? V9 also has the same problem.

This fix cannot be back-ported to version 10 and 9. These versions still depend on postcss 7. Changing that would be a major change.

alan-agius4 avatar May 12 '21 21:05 alan-agius4

@alan-agius4 the fix didn't solve the problem as [email protected] uses [email protected] which still has the vulnerability. The problem is resolved in versions >8.2.10.

dominikfoldi avatar May 14 '21 08:05 dominikfoldi

Should this not be reopened?

internalsystemerror avatar May 27 '21 11:05 internalsystemerror

This fix cannot be back-ported to version 10 and 9. These versions still depend on postcss 7. Changing that would be a major change.

That said, the vulnerability cannot be exploited when using the Angular CLI, as we don't expect the Angular CLI to be running on production servers and arbitrary stylesheets are compiled on the fly

See info: https://github.com/postcss/postcss/commit/8682b1e4e328432ba692bed52326e84439cec9e4#commitcomment-49809613

alan-agius4 avatar May 27 '21 13:05 alan-agius4

I was referring to it still being present on v11 as commented on by @dominikfoldi. We've not yet moved to Angular 12 and the issue still persists via resolve-url-loader.

internalsystemerror avatar May 27 '21 13:05 internalsystemerror

This has already been addressed in v11.

https://unpkg.com/browse/@angular-devkit/[email protected]/package.json#L58

alan-agius4 avatar May 27 '21 13:05 alan-agius4

That uses [email protected] which is still using [email protected] https://github.com/bholloway/resolve-url-loader/blob/657a637583b02cb159000084d01eda6015408dd3/packages/resolve-url-loader/package.json#L41. Am I misunderstanding something? Is the expectation that this issue is now with resolve-url-loader and should be resolved there instead?

image

internalsystemerror avatar May 27 '21 14:05 internalsystemerror

That uses [email protected] which is still using [email protected] https://github.com/bholloway/resolve-url-loader/blob/657a637583b02cb159000084d01eda6015408dd3/packages/resolve-url-loader/package.json#L41. Am I misunderstanding something? Is the expectation that this issue is now with resolve-url-loader and should be resolved there instead?

image

You are correct.

I was under the impression that resolve-url-loader@4 was updated to use postcss 8, but it appears not to be the case.

alan-agius4 avatar May 27 '21 14:05 alan-agius4

Just to agree with your point also though, this is not something I would expect to be present in production. And is more an annoyance for clogging up our CI pipeline logs.

internalsystemerror avatar May 27 '21 14:05 internalsystemerror

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.