Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit autoEscape:false in request body
-
DeliveryApp spreads req.body as renderFile data
-
ExploitData merged into engine config, escaping disabled
-
ExecutionScript payload injected into rendered template
-
PersistPayload cached on first compile for later renders
-
ImpactVictim browser executes injected script
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V4 - API and Web Service Object attribute protection
|
| Exploitation Conditions | Exploitation requires a specific insecure integration: the application must register Sqrl.renderFile as its view engine (e.g. app.engine('sqrl', Sqrl.renderFile)) AND pass a user-controlled object directly as render data (e.g. res.render('view', req.body)), so that attacker-supplied top-level keys such as autoEscape: false override engine configuration. A victim must then view the rendered page for the injected script to execute (UI:P). Persistence across other users requires template caching to be enabled (cache: true, which Express sets when 'view cache' is on, typically in production) - without caching, only the request carrying the malicious field is affected. Limiting factors: applications that copy only needed fields (e.g. { user: req.body.user }) are not exploitable, so this depends on a non-default anti-pattern rather than a default deployment; impact is confined to the client browser with no server-side compromise. |
| Impact | All signals point to a genuinely low-priority issue rather than a high-CVSS-but-overstated one. The vendor CVSS 4.0 base score is 2.3 (Low) with vector AV:N/AC:L/AT:P/PR:N/UI:P, and notably VC:N/VI:N/VA:N - the vulnerable system (the Node.js/Express server) suffers no direct confidentiality, integrity or availability impact; only the subsequent system (the victim's browser) is affected at SC:L/SI:L, which is consistent with a client-side XSS. The AT:P (attack requirement present) metric reflects a real precondition: the application must pass user-controlled objects directly as render data into renderFile, which is an insecure integration pattern rather than a default. The vuln.today Decision label is 'monitor', the lowest urgency tier, and this is NOT in CISA KEV (no confirmed active exploitation). No EPSS score was supplied in the input, so widespread-exploitation probability cannot be quantified. There is no confirmed working exploit code - only vendor advisories (GHSA, VulnCheck) that describe the flaw. The signals are mutually consistent: low base score, low-urgency decision label, no KEV, no confirmed PoC, and self-inflicted-configuration dependency all agree this is a correctness/hardening fix for applications following a specific anti-pattern, not an emergency. |
| Exploit ScenarioDerived | An Express application registers Squirrelly's renderFile as its view engine and renders with user data spread directly in, e.g. res.render('view', req.body). An attacker submits a request body containing autoEscape: false alongside a template variable carrying a script payload; because render data was merged into engine configuration, HTML escaping is disabled and the script is reflected into the page and executes in the victim's browser. No confirmed working exploit code is published, but the GHSA advisory describes the mechanism precisely, and with template caching enabled the attacker's single request can leave the template unescaped for subsequent victims until the cache is cleared. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 03, 2026
Squirrelly template engine releases before 10.0.0 merge the render data object into engine configuration inside renderFile, so unauthenticated remote attackers who can influence that data object can slip configuration keys such as autoEscape: false into a render call and turn off HTML escaping, producing cross-site scripting in the rendered page. The flaw is only reachable in a specific integration pattern: the application registers Sqrl.renderFile as its Express view engine and passes a user-controlled object straight through as render data (for example res.render('view', req.body)); a victim must then load the rendered page, and if template caching is enabled (Express sets this when 'view cache' is on, typically in production) the unescaped configuration is retained for later renders until restart or cache clear. This is an incomplete fix of CVE-2021-32819 / GHSL-2021-023, where 9.0.0 stopped honoring data.settings but left top-level data keys configuring the engine; severity is low (CVSS 4.0 score 2.3, assessed CVSS 3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N), no public exploit code was identified at time of analysis, and CISA KEV does not list it.
RemediationAI
Vendor-released patch: 10.0.0. Upgrade to squirrelly 10.0.0, which changes the rendering API so engine options are a separate argument - renderFile(filename, data, options?, callback?) - and render data can no longer configure the engine; the three-argument Express form keeps working, but because configuration placed in data is no longer honored this is a major release, so follow the migration guide at https://github.com/bgub/squirrelly/blob/master/MIGRATION.md and move all configuration fields (autoEscape, async, cache, views, root, tags, plugins, storage, useWith) out of the data object; nested data.options and data.settings no longer configure the engine either. Pending the upgrade, the vendor's workaround is to never pass user-controlled objects directly as render data - copy only the fields the template needs, e.g. res.render('view', { user: req.body.user }) - which requires auditing every render call that can receive request bodies, query parameters or other attacker-influenced objects. For Express caching and view lookup, register a wrapper that supplies trusted application settings separately, e.g. app.engine('sqrl', (filename, data, callback) => { Sqrl.renderFile(filename, data, { cache: app.enabled('view cache'), views: [].concat(app.get('views')) }, callback) }) - and do not spread request bodies, query parameters or render locals into that options argument. Disabling view caching (app.disable('view cache')) limits the persistence of a poisoned template to the single request that carried the field, but not that request's XSS, and costs view-render performance in production. The upstream fix is tracked in https://github.com/bgub/squirrelly/commit/6b9f1f5804a45e0d07e3b083fdb42d65f32ec1f4 and the advisory at https://github.com/bgub/squirrelly/security/advisories/GHSA-wx7c-246h-xv63.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Squirrelly is a JavaScript/TypeScript templating engine used as an Express view engine. In versions before 10.0.0, the renderFile(filename, data, cb) signature merged the caller-supplied data object into the engine configuration, so any top-level key in that object was treated as a configuration option. The root cause class is CWE-915 (improperly controlled modification of dynamically determined object attributes), reported alongside CWE-79 (cross-site scripting): because autoEscape is one of the configuration fields read from the same merge, an attacker-supplied key autoEscape: false disables the engine's HTML escaping and spliced markup is emitted verbatim into the page. The behaviour is a regression/completeness gap from the earlier CVE-2021-32819 (GHSL-2021-023) fix: release 9.0.0 stopped reading data.settings and nested data.options, but top-level data keys continued to configure the engine, as shown in the fixed-code references to src/file-handlers.ts and src/config.ts. Persistence depends on deployment: with cache: true (Express sets this when 'view cache' is enabled, e.g. in production) the options used for the first compile of a template are cached, so one request can leave a template unescaped for subsequent renders until the process restarts or the cache is cleared; without caching the effect is confined to the request carrying the malicious field. The vendor notes the engine is not a sandbox - templates, helpers, plugins and executable options must come from trusted sources - and the 10.0.0 fix separates the two concerns entirely.
Know when Squirrelly gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Attacker needs no privileges (PR:N) but relies on an insecure app integration passing user data as engine config (AC:H) and a victim viewing the page (UI:R); script crosses into the browser (S:C) with only client-side C:L/I:L.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Squirrelly
View allsquirrellyjs squirrelly v9.0.0 and fixed in v.9.0.1 was discovered to contain a code injection vulnerability via the com
Squirrelly is a template engine implemented in JavaScript that works out of the box with ExpressJS. Rated high severity
EUVD-2026-142004
GHSA-5wr5-mx62-vpcc
NVD
CVE.org
EPSS
Exploit-DB