Improperly Controlled Modification of Dynamically-Determined Object Attributes Affecting squirrelly package, versions <10.0.0


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SQUIRRELLY-23776545
  • published5 Dec 2026
  • disclosed3 Dec 2026
  • creditVishal Suwalka

Introduced: 3 Dec 2026

NewCVE-2026-142701  (opens in a new tab)
CWE-915  (opens in a new tab)

How to fix?

Upgrade squirrelly to version 10.0.0 or higher.

Overview

squirrelly is a Lightweight, fast, and powerful JS template engine. Supports helpers, filters, template inheritance

Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes via renderFile, which merges the render data object into the engine configuration. When an application passes user-controlled objects as render data (for example res.render('view', req.body) with app.engine('sqrl', Sqrl.renderFile)), an attacker can include configuration keys such as autoEscape: false in the submitted data to disable HTML escaping and inject arbitrary script into the rendered page. With template caching enabled, the options used for the first compile of a template are cached, so a single malicious request can leave that template unescaped for all subsequent renders until the process restarts or the cache is cleared. This is an incomplete fix of CVE-2021-32819: version 9.0.0 stopped reading data.settings, but top-level data keys still configured the engine.

CVSS Base Scores

version 4.0
version 3.1