Vulnerability library
Security checkJanuary 16, 2026

Sandbox Breakout / Arbitrary Code Execution in localeval

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

High severitynpmlocaleval

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

All versions of localeval are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through constructor.constructor. This may allow attackers to execute arbitrary code in the system. Evaluating the payload

returns the contents of process.env.

Recommendation

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

  • Affected version(s): >= 0, < 15.3.0
  • Patched version(s): 15.3.0

References

Could your website be exposed too?

SmartScanner can check your website for Sandbox Breakout / Arbitrary Code Execution in localeval and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 16, 2026