Vulnerability library
Security checkApril 04, 2024

Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code

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

High severitynpm@babel/traverse

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Using Babel to compile code that was specifically crafted by an attacker can lead to arbitrary code execution during compilation, when using plugins that rely on the path.evaluate()or path.evaluateTruthy() internal Babel methods.

Recommendation

Update the @babel/traverse package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 8.0.0-alpha.0, < 8.0.0-alpha.4 < 7.23.2**
  • Patched version(s): **8.0.0-alpha.4 7.23.2**

References

Could your website be exposed too?

SmartScanner can check your website for Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 04, 2024