You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@angular-devkit/build-angular depends on vulnarable version of webpack #24861
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Running npm audit on Angular v15 project causes an error output, because @angular-devkit/build-angular depends on vulnerable version of webpack 5.75.0.
Minimal Reproduction
Create new Angular project using the latest @angular-cli version 15.2.3.
Run npm audit in the project folder
Exception or Error
webpack 5.0.0 - 5.75.0
Severity: high
Cross-realm object access in Webpack 5 - https://github.com/advisories/GHSA-hc6q-2mpp-qw7j
fix available via `npm audit fix --force`
Will install @angular-devkit/build-angular@0.1101.2, which is a breaking change
node_modules/webpack
@angular-devkit/build-angular 0.1200.0-next.0 - 16.0.0-next.3
Depends on vulnerable versions of webpack
node_modules/@angular-devkit/build-angular
2 high severity vulnerabilities
Good morning, I have the same problem in Angular 14. In the console, I see this message: webpack 5.0.0 - 5.75.0
Severity: high
Cross-realm object access in Webpack 5 - GHSA-hc6q-2mpp-qw7j
fix available via npm audit fix --force
Will install @angular-devkit/build-angular@0.1101.2, which is a breaking change
node_modules/webpack
@angular-devkit/build-angular 0.1200.0-next.0 - 16.0.0-next.3
Depends on vulnerable versions of webpack
node_modules/@angular-devkit/build-angular
2 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Activity
SymbioticKilla commentedon Mar 15, 2023
Please port the fix to 13.x version if possible.
Thanks!
marianoAlvez commentedon Mar 15, 2023
Good morning, I have the same problem in Angular 14. In the console, I see this message: webpack 5.0.0 - 5.75.0
Severity: high
Cross-realm object access in Webpack 5 - GHSA-hc6q-2mpp-qw7j
fix available via
npm audit fix --forceWill install @angular-devkit/build-angular@0.1101.2, which is a breaking change
node_modules/webpack
@angular-devkit/build-angular 0.1200.0-next.0 - 16.0.0-next.3
Depends on vulnerable versions of webpack
node_modules/@angular-devkit/build-angular
2 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
fix(@angular-devkit/build-angular): update `webpack` dependency to `5…
fix(@angular-devkit/build-angular): update webpack dependency to `5.7…
fix(@angular-devkit/build-angular): update `webpack` dependency to `5…
fix(@angular-devkit/build-angular): update webpack dependency to `5.7…
fix(@angular-devkit/build-angular): update `webpack` dependency to `5…
dutta-arnab1 commentedon Mar 16, 2023
Could you please port this fix back to 14.2.x version?
jvyden commentedon Mar 16, 2023
The same patch is replicated for 14.2.x here:
#24863
fix(@angular-devkit/build-angular): update webpack dependency to `5.7…
fix(@angular-devkit/build-angular): update `webpack` dependency to `5…
fix(@angular-devkit/build-angular): update `webpack` dependency to `5…
alan-agius4 commentedon Mar 16, 2023
Webpack version has been updated in 13.3.11, 14.2.11 and 15.2.4.
angular-automatic-lock-bot commentedon Apr 16, 2023
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.