Vulnerability · Published Mar 29, 2021 · Assigned by snyk
CVE-2021-23358Arbitrary Code Injection
Low 3.3
In plain English
A low-severity security flaw in underscore. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 4.2% (higher than 91% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)3.3Low
Exploit odds (30 days)4.2%top 9.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | underscore | 1.9.1~dfsg-2 | DEBIAN-CVE-2021-23358 |
| Debian:13 | underscore | 1.9.1~dfsg-2 | DEBIAN-CVE-2021-23358 |
| Debian:14 | underscore | 1.9.1~dfsg-2 | DEBIAN-CVE-2021-23358 |
| npm | underscore | 1.12.1 | GHSA-cf4h-3jhx-xvhq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | underscore | 1.13.0-0 – before unspecifiedunspecified – before 1.13.0-21.3.2 – before unspecifiedunspecified – before 1.12.1 |
References
- https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505 x_refsource_MISC
- https://github.com/jashkenas/underscore/blob/master/modules/template.js%23L71 x_refsource_MISC
- [debian-lts-announce] 20210331 [SECURITY] [DLA 2613-1] underscore security update mailing-list, x_refsource_MLIST
- DSA-4883 vendor-advisory, x_refsource_DEBIAN
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek closed issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list, x_refsource_MLIST
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek commented on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list, x_refsource_MLIST
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley opened a new issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list, x_refsource_MLIST
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley commented on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list, x_refsource_MLIST
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley edited a comment on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list, x_refsource_MLIST
- https://www.tenable.com/security/tns-2021-14 x_refsource_CONFIRM
- FEDORA-2021-e49f936d9f vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-f278299902 vendor-advisory, x_refsource_FEDORA
- https://security.netapp.com/advisory/ntap-20240808-0003/
- http://seclists.org/fulldisclosure/2025/Apr/14
- https://security.netapp.com/advisory/ntap-20241108-0002/