PT-2021-7457 · Unknown+5 · Underscore+5

·

CVE-2021-23358

·

Published

2021-02-28

·

Updated

2026-07-07

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions underscore versions 1.3.2 through 1.12.1 underscore versions 1.13.0-0 through 1.13.0-2
Description The issue is related to the template function in the underscore library, which is used for working with arrays in JavaScript. It is caused by incorrect code generation management. Exploitation of this issue may allow a remote attacker to access confidential data, compromise its integrity, and cause a denial of service. The vulnerability is specifically related to the template function when a variable property is passed as an argument without proper sanitization, leading to arbitrary code injection.
Recommendations For underscore versions 1.3.2 through 1.12.1, update to a version outside of this range to mitigate the risk. For underscore versions 1.13.0-0 through 1.13.0-2, update to version 1.13.0-2 or later to resolve the issue. As a temporary workaround, consider disabling the template function until a patch is available. Restrict access to the template function to minimize the risk of exploitation, especially when variable properties are passed as arguments.

Exploit

Fix

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

AZL-45222
BDU:2022-06476
CVE-2021-23358
DLA-2613-1
DSA-4883-1
GHSA-CF4H-3JHX-XVHQ
MGASA-2021-0269
OESA-2021-1174
OPENSUSE-SU-2021:0601-1
OPENSUSE-SU-2021_0601-1
OPENSUSE-SU-2024:11095-1
RHSA-2021:2865
RHSA-2022:6393
RHSA-2026:2769
SNYK-JAVA-ORGWEBJARSBOWER-1081504
SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505
SNYK-JAVA-ORGWEBJARSNPM-1081503
SNYK-JS-UNDERSCORE-1080984
USN-4913-1
USN-4913-2

Affected Products

Astra Linux
Jira
Linuxmint
Suse
Ubuntu
Underscore