Vulnerabilities/

webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins

Severity:
Medium

Description

When webpack-dev-server is running on a non-HTTPS origin (the default), cross-origin requests from malicious websites can load the dev server’s JavaScript bundles via <script> tags. The fix introduced in v5.2.

Recommendation

Update the webpack-dev-server package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
webpack-dev-server
Anything's wrong? Let us know Last updated on May 18, 2026