CVE-2021-23358: Arbitrary Code Injection

Published Mar 29, 2021
·
Updated

A flaw was found in nodejs-underscore. Arbitrary code execution via the template function is possible, particularly when a variable property is passed as an argument as it is not sanitized. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Other sources

The package underscore from 1.13.0-0 and before 1.13.0-2, from 1.3.2 and before 1.12.1 are vulnerable to Arbitrary Code Execution via the template function, particularly when a variable property is passed as an argument as it is not sanitized.

The package underscore from 1.13.0-0 and before 1.13.0-2, from 1.3.2 and before 1.12.1 are vulnerable to Arbitrary Code Execution via the template function, particularly when a variable property is passed as an argument as it is not sanitized.

References:

https://github.com/jashkenas/underscore/blob/master/modules/template.js#L71 https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504 https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505 https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503 https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984

Red Hat

The package underscore from 1.13.0-0 and before 1.13.0-2, from 1.3.2 and before 1.12.1 are vulnerable to Arbitrary Code Injection via the template function, particularly when a variable property is passed as an argument as it is not sanitized.

Affected Software

16 affected componentsFixes available
redhat/ovirt-engine-ui-extensions<0:1.2.7-1.el8e
0:1.2.7-1.el8e
redhat/ovirt-web-ui<0:1.9.1-1.el8e
0:1.9.1-1.el8e
debian/underscore
1.9.1~dfsg-1+deb10u11.9.1~dfsg-31.13.4~dfsg+~1.11.4-3
npm/underscore>=1.3.2<1.12.1
1.12.1
underscorejs Underscore Node.js>=1.3.2<1.12.1
underscorejs Underscore Node.js>=1.13.0-0<1.13.0-2
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Tenable Tenable.Sc<=5.18.0
Fedoraproject Fedora=33
Fedoraproject Fedora=34
IBM Business Automation Insights<=25.0.0
IBM Business Automation Insights<=24.0.1
IBM Business Automation Insights<=24.0.0
redhat/underscore 1.13.0<2
2
redhat/underscore<1.12.1
1.12.1

Event History

Mar 29, 2021
CVE Published
12:00 AM
CVE Published
via MITRE·01:15 PM
Data Sourced
via MITRE·01:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·05:15 PM
DescriptionSeverityAffected Software
Mar 30, 2021
Data Sourced
07:45 PM
SeverityAffected Software
May 6, 2021
Advisory Published
04:09 PM
Sep 3, 2025
Data Sourced
via Microsoft·09:42 PM
DescriptionSeverityWeakness
Nov 3, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-23358?

CVE-2021-23358 is a vulnerability in the underscore package in versions 1.13.0-0 and before 1.13.0-2 and in versions 1.3.2 and before 1.12.1. It allows for arbitrary code execution via the template function.

2

How does CVE-2021-23358 impact data confidentiality and integrity?

CVE-2021-23358 has a high impact on data confidentiality and integrity as it allows for arbitrary code execution, which can potentially lead to unauthorized access and manipulation of data.

3

What is the severity of CVE-2021-23358?

CVE-2021-23358 has a severity rating of high with a score of 7 based on the Common Vulnerability Scoring System (CVSS).

4

How can I fix CVE-2021-23358?

To fix CVE-2021-23358, upgrade the underscore package to version 1.13.0-2 or higher if you are using versions 1.13.0-0 to 1.13.0-2. If you are using versions 1.3.2 to 1.12.1, upgrade to a version higher than 1.12.1.

5

Where can I find more information about CVE-2021-23358?

You can find more information about CVE-2021-23358 on the GitHub page for the underscore package (https://github.com/jashkenas/underscore/blob/master/modules/template.js#L71) and on Snyk (https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504 and https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505).

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