Patchfirst
CVE-2021-32819 Public exploit High · 8.0 EPSS 58.3%

Remote code execution in squirrelly

Fix:upgrade squirrelly to 9.0.0 or later Details ↓

squirrellyjs · squirrelly

Summary

The squirrelly template engine for JavaScript, used with ExpressJS, mixes template data with engine configuration through the Express render API, so overwriting internal configuration options can lead to remote code execution in downstream applications. An attacker can trigger this over the network without authentication, but it requires user interaction and a high-complexity condition (a downstream application that passes attacker-influenced data into the render call).

Official description · CVE.org

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.

Breakdown
66.1 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 3 years after disclosure. Public exploit code (PoC-in-GitHub) appeared 29 days after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+29 days
  3. First seen exploitedVulnCheck KEV evidence+3 yrs

Affected versions and fixes

as published in the CVE record

squirrellyjs squirrelly

Affected: >= 9.0.0, < 9.0.0

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: squirrelly.

npmsquirrellyGHSA-q8j6-pwqx-pm96

Upgrade to 9.0.0 or later

npmnpm install squirrelly@9.0.0

The first fix for CVE-2021-32819. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 9.0.09.0.0

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 1 community threat pulse (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close