{"id":"GHSA-3gpc-w23c-w59w","aliases":[],"status":"published","title":"Sandbox Breakout / Arbitrary Code Execution in pitboss-ng","description":"All versions of `pitboss-ng` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `this.constructor.constructor` . This may allow attackers to execute arbitrary code in the system. Evaluating the payload `this.constructor.constructor('return process.env')()` prints the contents of `process.env`.\n  \n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2020-09-04T15:02:06Z","modified":"2023-01-09T05:03:51Z","fixes":[{"ecosystem":"npm","package":"pitboss-ng","fixed_in":["2.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"pitboss-ng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"pitboss-ng","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1319","tags":["web"]},{"url":"https://github.com/advisories/GHSA-3gpc-w23c-w59w"}],"sources":{"ghsa":[{"id":"GHSA-3gpc-w23c-w59w","title":"Sandbox Breakout / Arbitrary Code Execution in pitboss-ng","description":"All versions of `pitboss-ng` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `this.constructor.constructor` . This may allow attackers to execute arbitrary code in the system. Evaluating the payload `this.constructor.constructor('return process.env')()` prints the contents of `process.env`.\n  \n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-04T15:02:06Z","modified":"2023-01-09T05:03:51Z","updated_at":"2026-11-02T14:36:06.884904Z"}],"osv":[{"id":"GHSA-3gpc-w23c-w59w","title":"Sandbox Breakout / Arbitrary Code Execution in pitboss-ng","description":"All versions of `pitboss-ng` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `this.constructor.constructor` . This may allow attackers to execute arbitrary code in the system. Evaluating the payload `this.constructor.constructor('return process.env')()` prints the contents of `process.env`.\n  \n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-04T15:02:06Z","modified":"2021-04-21T19:45:42Z","updated_at":"2026-11-02T15:46:35.747385Z"}]}}
