← Vulnerability feed

Vulnerability record · CVE-2021-32831 · published 30 August 2021

CVE-2021-32831: Totaljs total.js code injection vulnerability

Totaljs · 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.

7.2 CVSS 3.1 High EPSS 1.5% · top 27.3% CWE-94 · Code injection
7.2CVSS 3.1 base score, v2 6.5
1.5%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-32831 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-23389Totaljs total.js code injection vulnerabilityThe package total.js before 3.4.9 are vulnerable to Arbitrary Code Execution via the U.set() and U.get() functions.EPSS 3.6%9.8CVE-2021-23344Totaljs total.js code injection vulnerabilityThe package total.js before 3.4.8 are vulnerable to Remote Code Execution (RCE) via set.EPSS 4.9%8.8CVE-2024-48655Totaljs total.js code injection vulnerabilityAn issue in Total.js CMS v.1.0 allows a remote attacker to execute arbitrary code via the func.js file.EPSS 1.0%8.8CVE-2022-44019Totaljs total.js os command injection vulnerabilityIn Total.js 4 before 0e5ace7, /api/common/ping can achieve remote command execution via shell metacharacters in the host parameter.EPSS 2.2%8.6CVE-2020-28494Totaljs total.js os command injection vulnerabilityThis affects the package total.js before 3.4.7. The issue occurs in the image.pipe and image.stream functions. The type parameter is used to build th…EPSS 1.7%7.5CVE-2019-8903Total.js Platform path traversal in index.jsTotal.js Platform before 3.2.3 contains a path traversal flaw in index.js, allowing crafted requests to reach files outside the intended directory. T…EPSS 72%analysed7.3CVE-2020-28495Totaljs total.js vulnerabilityThis affects the package total.js before 3.4.7. The set function can be used to set a value into the object according to the path. However the keys o…EPSS 3.6%5.4CVE-2022-41392Totaljs total.js cross-site scripting vulnerabilityA cross-site scripting (XSS) vulnerability in TotalJS commit 8c2c8909 allows attackers to execute arbitrary web scripts or HTML via a crafted payload…EPSS 0.70%

Source: NIST National Vulnerability Database (record CVE-2021-32831), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.