7.5high
Code injection in total.js
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.47% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vwhc-pww7-72x6
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| totaljs framework | < 3.4.9 | CVE List |
| total.js (npm) | before 3.4.9 | GitHub Advisory Database |
| totaljs total.js | before 3.4.9 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
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.
References
| 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 | |
| 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32831 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vwhc-pww7-72x6 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-32831 changed 2026-06-17 | Public domain |