RCE
How we exploited a remote code execution vulnerability in math.js
The math.js API allowed evaluation of JavaScript expressions, and the sandbox could be escaped by accessing the Function constructor indirectly through an existing function's constructor property. An attacker could then access the Node.js process object, read files, and spawn arbitrary processes, achieving remote code execution.
math.js