Wiz Agents & Workflows are here

CVE-2021-23358
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-23358 affects the underscore JavaScript library versions 1.13.0-0 to 1.13.0-2 and 1.3.2 to 1.12.1. The vulnerability was discovered in March 2021 and involves an Arbitrary Code Injection vulnerability in the template function, particularly when a variable property is passed as an argument as it is not sanitized (NVD, CVE).

Technical details

The vulnerability exists in the template function of the underscore library, where the variable option taken from _.templateSettings is not properly sanitized. This allows for arbitrary code injection when a variable property is passed as an argument. The vulnerability has a CVSS score of 7.2 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (Snyk).

Impact

Successful exploitation of this vulnerability could lead to arbitrary code execution, potentially resulting in disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS) (Tenable).

Mitigation and workarounds

The vulnerability has been fixed in versions 1.13.0-2 and 1.12.1. Users are advised to upgrade to these or later versions. Multiple vendors have released patches, including Debian which fixed the issue in version 1.8.3~dfsg-1+deb9u1 for Debian 9 stretch, and Fedora which released version 1.13.1-1 (Debian, Fedora).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34156CRITICAL9.9
  • JavaScriptJavaScript
  • @nocobase/plugin-workflow-javascript
NoYesMar 30, 2026
CVE-2026-34363HIGH8.2
  • JavaScriptJavaScript
  • parse-server
NoYesMar 30, 2026
CVE-2026-33949HIGH8.1
  • JavaScriptJavaScript
  • @tinacms/graphql
NoYesMar 30, 2026
CVE-2026-34043MEDIUM5.9
  • JavaScriptJavaScript
  • serialize-javascript
NoYesMar 31, 2026
CVE-2026-34373MEDIUM5.3
  • JavaScriptJavaScript
  • parse-server
NoYesMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management