{"api_version":"1","generated_at":"2026-07-24T18:44:19+00:00","cve":"CVE-2021-32831","urls":{"html":"https://cve.report/CVE-2021-32831","api":"https://cve.report/api/cve/CVE-2021-32831.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32831","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32831"},"summary":{"title":"CVE-2021-32831","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-08-30 21:15:00","updated_at":"2021-09-07 19:43:00"},"problem_types":["CWE-94"],"metrics":[],"references":[{"url":"https://www.npmjs.com/package/total.js","name":"https://www.npmjs.com/package/total.js","refsource":"MISC","tags":[],"title":"total.js  -  npm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11","name":"https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11","refsource":"MISC","tags":[],"title":"framework/changes.txt at e644167d5378afdc45cb0156190349b2c07ef235 · totaljs/framework · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3","name":"https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3","refsource":"MISC","tags":[],"title":"Fixed security issue in `U.set()` and `U.get()`. · totaljs/framework@887b0fa · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/","name":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/","refsource":"CONFIRM","tags":[],"title":"GHSL-2021-066: DoS and RCE in totaljs | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32831","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32831","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32831","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"totaljs","cpe5":"total.js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32831","qid":"981318","title":"Nodejs (npm) Security Update for total.js (GHSA-vwhc-pww7-72x6)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32831","STATE":"PUBLIC","TITLE":"Code injection in total.js"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"framework","version":{"version_data":[{"version_value":"< 3.4.9"}]}}]},"vendor_name":"totaljs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3","refsource":"MISC","url":"https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3"},{"name":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/","refsource":"CONFIRM","url":"https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/"},{"name":"https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11","refsource":"MISC","url":"https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11"},{"name":"https://www.npmjs.com/package/total.js","refsource":"MISC","url":"https://www.npmjs.com/package/total.js"}]},"source":{"advisory":"GHSL-2021-066","discovery":"INTERNAL"}},"nvd":{"publishedDate":"2021-08-30 21:15:00","lastModifiedDate":"2021-09-07 19:43:00","problem_types":["CWE-94"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH"},"exploitabilityScore":1.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.5},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:totaljs:total.js:*:*:*:*:*:node.js:*:*","versionEndExcluding":"3.4.9","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32831","Ordinal":"208219","Title":"CVE-2021-32831","CVE":"CVE-2021-32831","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32831","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"32831","Ordinal":"2","NoteData":"2021-08-30","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"32831","Ordinal":"3","NoteData":"2021-08-30","Type":"Other","Title":"Modified"}]}}}