{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-32831","id":"CVE-2021-32831","title":"Code injection in total.js","description":"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.","descriptionLong":"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.","published":"2021-08-30T20:40:21.000Z","updated":"2026-10-24T10:50:41.695243180Z","reserved":"2021-05-12T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["totaljs framework"],"affectedProducts":[{"vendor":"totaljs","product":"framework","defaultStatus":null,"versions":[{"status":"affected","version":"< 3.4.9"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"total.js","purl":"pkg:npm/total.js","ranges":["<3.4.9"],"fixed":["3.4.9"],"advisory":"GHSA-vwhc-pww7-72x6"}],"cwes":["CWE-94"],"aliases":["GHSA-vwhc-pww7-72x6"],"references":[{"url":"https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.npmjs.com/package/total.js","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32831","tags":["advisory"]},{"url":"https://github.com/totaljs","tags":["package"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01466,"epssPercentile":0.7425,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-32831","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32831","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-32831","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vwhc-pww7-72x6","ok":true,"note":"GHSA-vwhc-pww7-72x6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-32831","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}