Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. localeval
  4. ›
  5. GHSA-mmqv-m45h-q2hp

GHSA-mmqv-m45h-q2hp: Sandbox Breakout / Arbitrary Code Execution in localeval

September 4, 2020 (updated January 16, 2026)

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

constructor.constructor("return process.env")()

returns the contents of process.env.

References

  • github.com/advisories/GHSA-mmqv-m45h-q2hp
  • github.com/espadrine/localeval
  • github.com/espadrine/localeval/commit/823f112c793b8fae051eeddad61d4ed29804a56c
  • github.com/espadrine/localeval/commit/ce985eba77a5f89a7f718727cbaa7fb14da40335
  • github.com/espadrine/localeval/issues/9

Code Behaviors & Features

Detect and mitigate GHSA-mmqv-m45h-q2hp with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 15.3.0

Fixed versions

  • 15.3.0

Solution

Upgrade to version 15.3.0 or above.

Source file

npm/localeval/GHSA-mmqv-m45h-q2hp.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 12:18:41 +0000.