Vulnerability library
Security checkOctober 30, 2023

Cross-realm object access in Webpack 5

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmwebpack

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Webpack 5 before 5.76.0 does not avoid cross-realm object access. ImportParserPlugin.js mishandles the magic comment feature. An attacker who controls a property of an untrusted object can obtain access to the real global object.

Recommendation

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

  • Affected version(s): >= 5.0.0, < 5.76.0
  • Patched version(s): 5.76.0

References

Could your website be exposed too?

SmartScanner can check your website for Cross-realm object access in Webpack 5 and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 30, 2023