{"id":"CVE-2021-32831","aliases":["CVE-2021-32831","GHSA-vwhc-pww7-72x6"],"related":[],"kind":"vulnerability","state":"published","title":"Code injection in total.js","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Total.js framework (paquete npm total.js) es un framework para la plataforma Node.js escrito en JavaScript puro similar a Laravel de PHP o Django de Python o ASP.NET MVC. En total.js framework versiones anteriores a 3.4.9, llamar a la función utils.set con valores controlados por el usuario conlleva a una inyección de código. Esto puede causar una variedad de impactos que incluyen una ejecución de código arbitrario. Esto es corregido en versión 3.4.9.","source":"nvd"}],"published":"2021-08-30T20:40:21.000Z","modified":"2026-06-17T03:53:43.203Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 3.4.9","status":"affected"}],"vendor":"totaljs","product":"framework","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.4.9"}],"ecosystem":"npm","package":"total.js","purl":"pkg:npm/total.js","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.4.9"}],"vendor":"totaljs","product":"total.js","cpe":"cpe:2.3:a:totaljs:total.js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/","tags":["exploit","patch","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/total.js","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32831","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/totaljs","tags":["package"],"sources":["ghsa"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32831","url":"https://www.cve.org/CVERecord?id=CVE-2021-32831","licence":"CVE Terms of Use","modified":"2024-08-03T23:33:56.088Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vwhc-pww7-72x6","url":"https://github.com/advisories/GHSA-vwhc-pww7-72x6","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:01.802Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32831","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32831","licence":"Public domain","modified":"2026-06-17T03:53:43.203Z"}],"updatedAt":"2026-11-25T22:58:03.562Z","epss":{"score":0.01466,"percentile":0.74449,"date":"2026-12-01T12:00:22.000Z"}}