Skip to content
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

Update webpack version in @nx/module-federation to address security vulnerability #12

Closed
nxpatterns opened this issue Jan 24, 2025 · 1 comment

Comments

@nxpatterns
Copy link

nxpatterns commented Jan 24, 2025

Hello Nx team,

I've noticed that the current version of @nx/module-federation (20.3.3) is using webpack 5.88.0, which has a known security vulnerability (GHSA-4vvj-4cpr-p986).

The vulnerability is described as: "Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS".

To address this issue, I suggest updating the webpack dependency in @nx/module-federation to the latest stable version (currently 5.89.0 as of January 2025).

I've tested this locally by creating a copy of @nx/module-federation and updating the webpack version to ^5.89.0 in its package.json. After this change, the npm audit no longer reports the webpack-related vulnerability.

Could you please consider updating the webpack version in the official @nx/module-federation package to address this security concern?

Thank you for your attention to this matter.

EDIT: Is it possible that I created this GitHub issue in the wrong package in my haste? Because this repo doesn't seem to have been updated for quite some time.

@nxpatterns
Copy link
Author

Closing this issue as it's found its true home in the main Nx monorepo! 🏠

🔄 New home: Security Enhancement: webpack vulnerability in @nx/module-federation

For future reference: @nx/module-federation resides in https://github.com/nrwl/nx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant