CVE-2021-32831
HIGH 7.2CVSS 3.1Code Injection in total.js
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
- 30 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-vwhc-pww7-72x6
- Sources
- NVDJSONOSV GHSA-vwhc-pww7-72x6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | totaljs | total.jscpe:2.3:a:totaljs:total.js:*:*:*:*:*:node.js:*:* |
< 3.4.9 | 3.4.9 |
| OSV | npm | total.js | < 3.4.9 | 3.4.9 |
References
- https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11 · Third Party Advisory, WEB
- https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3 · Patch, Third Party Advisory, WEB
- https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/ · Exploit, Patch, Third Party Advisory, ADVISORY
- https://www.npmjs.com/package/total.js · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-32831 · ADVISORY
- https://github.com/totaljs · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 30 Aug 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Sep 2021)