CVE-2021-32819: RCE in Squirrelly Template Engine via Express Render API
- Vendor
- Squirrelly
A vulnerability in the Squirrelly JavaScript template engine allows attackers to overwrite internal configuration options via the Express render API. This occurs because Squirrelly mixes pure template data with engine configuration options, enabling an attacker to inject malicious configuration that can lead to remote code execution in downstream applications using Squirrelly with ExpressJS.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary code on the server running a vulnerable version of Squirrelly integrated with ExpressJS, potentially leading to full system compromise.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict or sanitize user input passed to the template engine and avoid exposing template configuration options to untrusted sources. Consider isolating the template rendering process to limit the impact of potential exploitation.
Remediation
Patch, then assume compromise.
Upgrade Squirrelly to version 9.0.0 or later, where the issue has been addressed and the mixing of template data with engine configuration options is properly handled.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-32819 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-32819?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2021-32819.
- Is there a patch for CVE-2021-32819?
- Upgrade Squirrelly to version 9.0.0 or later, where the issue has been addressed and the mixing of template data with engine configuration options is properly handled.
- What products are affected by CVE-2021-32819?
- Squirrelly.
- How severe is CVE-2021-32819?
- CVE-2021-32819 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 58.3% (99th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.