CVE-2021-23358: Arbitrary Code Injection
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
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
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.
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.
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).
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.
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).