LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32819: Remote code execution in squirrelly

Squirrelly is a template engine implemented in JavaScript that works out of the box with ExpressJS. Squirrelly mixes pure template data with engine configuration options through the Express render API. By overwriting internal configuration options remote code execution may be triggered in downstream applications. This issue is fixed in version 9.0.0. For complete details refer to the referenced GHSL-2021-023.

HighCVSS 8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-32819 affects the JavaScript Squirrelly template engine. In downstream ExpressJS applications, template data can mix with engine configuration through the render API. If an attacker can influence that data, internal options may be overwritten and remote code execution may result. Sources state the issue is fixed in version 9.0.0.

Executive priority

Prioritize remediation for public or authenticated web applications using Squirrelly with Express. The business risk is high because successful abuse can become server-side code execution, but available evidence does not show known active exploitation.

Technical view

Squirrelly allowed pure template data and engine configuration options to share the Express render input path. The advisory describes configuration option overwrite leading to RCE in applications using Squirrelly. The CVSS 3.1 score is 8.0 with network attack vector, high complexity, no privileges required, required user interaction, and changed scope.

Likely exposure

Exposure is most likely in Node.js/Express applications that use Squirrelly for server-side templates and pass user-influenced objects into render calls. The provided bundle does not establish every affected version range beyond stating the issue is fixed in 9.0.0.

Exploitation context

The bundle does not cite active exploitation, and the CVE is not marked KEV. Exploitation is not described as trivial: CVSS lists high attack complexity and required user interaction. Treat internet-facing apps using vulnerable Squirrelly render paths as higher priority.

Researcher notes

Evidence is strongest for the root cause and fix references. The affected-version detail in the supplied bundle is incomplete or ambiguous, while the description clearly says version 9.0.0 fixes the issue. Avoid claiming exploitation in the wild without additional cited evidence.

Mitigation direction

  • Upgrade Squirrelly to fixed version 9.0.0 or later per the CVE description.
  • Review vendor advisory GHSL-2021-023 and linked fix commits.
  • Avoid passing user-controlled objects directly into template render configuration paths.
  • Add tests ensuring template data cannot override engine internals.

Validation and detection

  • Inventory applications and dependency manifests for Squirrelly usage.
  • Confirm deployed Squirrelly versions against the fixed version stated in the CVE.
  • Review Express render calls for user-influenced data objects.
  • Verify tests cover separation of template data and engine options.
Prepared
Confidence
medium
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-200: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. 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-32819 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
8 (3.1)
Known Exploited
No
Published

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

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
8CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N1.65.8Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

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

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

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
squirrellyjssquirrelly9.0.0Listed
Weakness

CWE details

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

CWE-200 · source CWE mapping

Exposure of Sensitive Information to an Unauthorized Actor

Exposure of Sensitive Information to an Unauthorized Actor represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.