LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32831: Code 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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Total.js applications using total.js before 3.4.9 may be vulnerable if they pass user-controlled input into utils.set. In that situation, the framework could treat attacker-controlled data as code, potentially allowing arbitrary code execution. The sources name version 3.4.9 as the fix.

Executive priority

Treat this as a high-priority dependency remediation for applications using total.js. Business urgency is highest where total.js services process sensitive data or expose code paths that pass user-influenced values into utils.set. No source in the bundle supports emergency active-exploitation handling.

Technical view

CVE-2021-32831 is CWE-94 code injection in the total.js npm framework. The vulnerable behavior is in utils.set before 3.4.9 when called with user-controlled values. CVSS 3.1 is 7.5 with local attack vector, high complexity, high privileges required, changed scope, and high confidentiality, integrity, and availability impact.

Likely exposure

Exposure is likely limited to Node.js services that depend on the total.js package below 3.4.9 and use utils.set on untrusted or user-influenced values. The source bundle does not identify vulnerable downstream applications, internet-wide exposure, or specific deployment patterns.

Exploitation context

The provided sources do not show active exploitation, and this CVE is not listed as KEV in the bundle. Exploitation requires the vulnerable function to be reachable with user-controlled values and, per CVSS, assumes high privileges, high complexity, and local attack vector.

Researcher notes

Focus assessment on dependency version and reachability of utils.set. The public description ties impact to user-controlled values reaching that function, not every total.js installation. Avoid assuming remote exploitability beyond the CVSS vector and advisory language provided.

Mitigation direction

  • Upgrade total.js to version 3.4.9 or later.
  • Identify and prioritize applications using total.js below 3.4.9.
  • Review code paths calling utils.set with user-controlled values.
  • Follow vendor project guidance if additional remediation details are published.

Validation and detection

  • Check package-lock, yarn.lock, pnpm-lock, or runtime inventory for total.js versions.
  • Search application code for utils.set usage.
  • Confirm untrusted input cannot reach utils.set in vulnerable deployments.
  • Run existing unit and integration tests after upgrading total.js.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32831 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H0.86Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2021-32831Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
totaljsframework< 3.4.9Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-94 · source CWE mapping

Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.