GHSA-MMQV-M45H-Q2HP
Vulnerability from github – Published: 2020-09-04 15:22 – Updated: 2026-01-16 14:47
VLAI?
Summary
Sandbox Breakout / Arbitrary Code Execution in localeval
Details
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.
Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "localeval"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "15.3.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:55:41Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "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 \n```\nconstructor.constructor(\"return process.env\")()\n``` \n\nreturns the contents of `process.env`.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.",
"id": "GHSA-mmqv-m45h-q2hp",
"modified": "2026-01-16T14:47:29Z",
"published": "2020-09-04T15:22:40Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/espadrine/localeval/issues/9"
},
{
"type": "WEB",
"url": "https://github.com/espadrine/localeval/commit/823f112c793b8fae051eeddad61d4ed29804a56c"
},
{
"type": "WEB",
"url": "https://github.com/espadrine/localeval/commit/ce985eba77a5f89a7f718727cbaa7fb14da40335"
},
{
"type": "PACKAGE",
"url": "https://github.com/espadrine/localeval"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Sandbox Breakout / Arbitrary Code Execution in localeval"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…