Skip to content
Fencer Intel
critical —

GHSA-mmqv-m45h-q2hp json

Sandbox Breakout / Arbitrary Code Execution in localeval

published 6y ago modified 9mo ago

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

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.

Patch / fix

Is GHSA-mmqv-m45h-q2hp in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Affected packages

ecosystem package affected fixed in
npm localeval
<15.3.0
15.3.0

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.