# CVE-2021-32831: Code injection in total.js

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.47%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-30T20:40:21.000Z
- Modified: 2026-06-17T03:53:43.203Z
- Also known as: GHSA-vwhc-pww7-72x6
- Weaknesses: CWE-94
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- totaljs framework: < 3.4.9
- total.js (npm): before 3.4.9
- totaljs total.js: before 3.4.9

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs/> (exploit, patch, third-party-advisory)
- <https://github.com/totaljs/framework/commit/887b0fa9e162ef7a2dd9cec20a5ca122726373b3> (patch, third-party-advisory, web)
- <https://github.com/totaljs/framework/blob/e644167d5378afdc45cb0156190349b2c07ef235/changes.txt#L11> (third-party-advisory, web)
- <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)
- <https://securitylab.github.com/advisories/GHSL-2021-066-totaljs-totaljs> (advisory)

## Sources

- CVE List: [CVE-2021-32831](https://www.cve.org/CVERecord?id=CVE-2021-32831), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-vwhc-pww7-72x6](https://github.com/advisories/GHSA-vwhc-pww7-72x6), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-32831](https://nvd.nist.gov/vuln/detail/CVE-2021-32831), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32831 · Whole record: https://cve.day/CVE-2021-32831.json · Rebuilt by cve.day 2026-11-25T22:58:03.562Z
