CVE-2026-142701: Squirrelly before 10.0.0 XSS via autoEscape Override in renderFile

Published Dec 3, 2026
·
Updated

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.

Affected Software

1 affected component
npm/squirrelly<10.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.0.0

Event History

Dec 3, 2026
CVE Published
via MITRE·12:09 AM
Data Sourced
via MITRE·12:09 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 AM
DescriptionSeverityWeakness
Event
via NVD·01:17 AM

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using npm/squirrelly before 10.0.0 are exposed when they pass user-controlled render data to renderFile. A relevant example is passing Express req.body directly or indirectly as render data.

2

What must an attacker be able to do to exploit it?

The attacker needs to submit data that reaches renderFile as engine options. They can supply a key such as autoEscape: false, causing HTML escaping to be disabled and allowing script injection.

3

Does template caching change the impact?

Yes. When template caching is enabled, the escaping override can persist and affect later renders, potentially impacting users who did not submit the malicious data.

4

What can be done if upgrading is not immediately possible?

Do not pass untrusted request data directly to renderFile as render data or engine options. Filter or construct the render-data object so attacker-controlled input cannot set engine option keys such as autoEscape.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203