Code injection in total.js
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Total.js | framework | before 3.4.9 | 3.4.9 | Patch available | CNA |
| — | total.js (npm) | before 3.4.9 | 3.4.9 | Patch available | GHSA-vwhc-pww7-72x6 |
- framework VendorTotal.js Affected before 3.4.9 Fixed in 3.4.9 Patch available CNA
- total.js (npm) Vendor— Affected before 3.4.9 Fixed in 3.4.9 Patch available GHSA-vwhc-pww7-72x6
Remediation
- Fix · CNA framework (totaljs) Fixed in 3.4.9
- Fix · GHSA-vwhc-pww7-72x6 total.js (npm) Fixed in 3.4.9 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-32831
- 2026-10-03 Alias added: GHSA-vwhc-pww7-72x6
References
Advisory 4
Other 1
More Total.js vulnerabilities
- TI-2024-32459 An issue in Total.js CMS v.1.0 allows a remote attacker to execute arbitrary code via the func.js file. CVSS 3.1HIGH 8.8
- TI-2022-21645 In Total.js 4 before 0e5ace7, /api/common/ping can achieve remote command execution via… CVSS 3.1HIGH 8.8
- TI-2019-06421 index.js in Total.js Platform before 3.2.3 allows path traversal. CVSS 3.0HIGH 7.5
- TI-2025-10089 Total.js CMS Files Menu cross site scripting CVSS 4.0MEDIUM 4.8
- TI-2025-10016 Total.js CMS Layout admin layouts_save cross site scripting CVSS 4.0MEDIUM 4.8
- TI-2021-06042 Remote code execution (RCE) in total.js CVSS 3.1CRITICAL 9.8
Sources
- CVE-2021-32831 · CVE Program
- CVE-2021-32831 · NVD
- FIRST EPSS
- GHSA-vwhc-pww7-72x6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences