{"id":"CVE-2021-32831","published":"2021-08-30T20:40:21Z","modified":"2024-08-03T23:33:56Z","title":"Code injection in total.js","vendor":"totaljs","product":"framework","tier":"tail","description":{"text":"Total.js framework (npm package 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. In total.js framework before version 3.4.9, calling the utils.set function with user-controlled values leads to code-injection. This can cause a variety of impacts that include arbitrary code execution. This is fixed in version 3.4.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01466,"percentile":0.74331,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/total.js","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":14.87},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"totaljs","affectedVersions":[{"vendor":"totaljs","product":"framework","versions":["< 3.4.9"]}],"affected":[{"ecosystem":"npm","package":"total.js","vulnerableRanges":["<3.4.9"],"patched":["3.4.9"],"from":["GHSA-vwhc-pww7-72x6"],"provenance":"source"}],"summary":{"text":"A code injection flaw exists in the utils.set function of the total.js framework (npm package total.js, a Node.js web framework), where user-controlled values passed to that function can be injected as code. An attacker who can influence those values can cause arbitrary code execution, but the attack requires local access, high attack complexity, and high privileges, with no user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:14Z"},"euvd":{"id":"EUVD-2021-2121","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-28495","published":"2021-02-02","fixed":"3.4.7","kev":false},{"cve":"CVE-2021-23344","published":"2021-03-04","fixed":"3.4.8","kev":false,"link":{"from":"CVE-2021-23344","to":"CVE-2021-32831","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:total.js","fromFixed":"3.4.8","toFixed":"3.4.9","daysApart":179},{"kind":"same-code","provenance":"machine","files":["utils.js"],"commits":["https://github.com/totaljs/framework/commit/c812bbcab8981797d3a1b9993fc42dad3d246f04","https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3"],"basis":"shared file"}]}},{"cve":"CVE-2021-23389","published":"2021-07-12","fixed":"3.4.9","kev":false},{"cve":"CVE-2021-32831","published":"2021-08-30","fixed":"3.4.9","kev":false}],"package":"npm:total.js"}}