Description
Squirrelly before 10.0.0 contains a cross-site scripting vulnerability that allows remote attackers to disable HTML escaping by supplying engine options in render data passed to renderFile. Attackers can submit keys like autoEscape: false in user-controlled data such as Express req.body to inject script, which persists for later renders when template caching is enabled.
Metrics
CVSS 3.1 4.7/10
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| bgub | squirrelly | < 10.0.0 |
References
- https://github.com/bgub/squirrelly/blob/e67c27ca3f4bc76421c63459ffed23c932103be4/src/config.ts#L101-L118
- https://github.com/bgub/squirrelly/blob/e67c27ca3f4bc76421c63459ffed23c932103be4/src/file-handlers.ts#L109-L117
- https://github.com/bgub/squirrelly/commit/6b9f1f5804a45e0d07e3b083fdb42d65f32ec1f4
- https://github.com/bgub/squirrelly/releases/tag/v10.0.0
- https://github.com/bgub/squirrelly/security/advisories/GHSA-wx7c-246h-xv63
- https://www.vulncheck.com/advisories/squirrelly-before-10.0.0-xss-via-autoescape-override-in-renderfile
Timeline
- Published
- Dec 3, 2026
- Last modified
- Dec 4, 2026
- NVD status
- Deferred