CVE-2021-23358
Arbitrary Code Injection
Reported by snyk · Published March 29, 2021
underscore is fixed in 1.12.1 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| underscore | npm | 1.12.1 |
| underscore | Ubuntu:18.04:LTS | 1.8.3~dfsg-1ubuntu0.1 |
| tenable.sc | tenable | 5.18.0 |
| underscore | Ubuntu:16.04:LTS | 1.7.0~dfsg-1ubuntu1.1 |
| underscore | Ubuntu:20.04:LTS | 1.9.1~dfsg-1ubuntu0.20.04.1 |
| underscore | underscorejs | 1.13.0-2, 1.12.1 |
| underscore | n/a | unspecified, 1.13.0-2, 1.12.1 |
| underscore | Ubuntu:Pro:14.04:LTS | 1.4.4-2ubuntu1+esm1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | underscore | 1.13.0-0, unspecified, 1.3.2 |
| npm | underscore | 1.3.2 |
| underscorejs | underscore | |
| n/a | underscore | 1.13.0-0, *, 1.3.2 |
Timeline
- Mar 29, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Oct 21, 2023 PoC Published
- Mar 7, 2026 Distribution Patch (28 in total, the first dated here)
- Mar 7, 2026 Security Advisory (30 in total, the first dated here)
- Aug 25, 2026 Coalition ESS Score
- Sep 3, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-23358
vulnetix vdb fixes CVE-2021-23358
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23358/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20210331 [SECURITY] [DLA 2613-1] underscore security update mailing-listx_refsource_MLIST
- DSA-4883 vendor-advisoryx_refsource_DEBIAN
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek closed issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-listx_refsource_MLIST
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek commented on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-listx_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-listx_refsource_MLIST
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley commented on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-listx_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-listx_refsource_MLIST
- x_refsource_CONFIRM
- FEDORA-2021-e49f936d9f vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-f278299902 vendor-advisoryx_refsource_FEDORA
- https://security.netapp.com/advisory/ntap-20240808-0003/ url
- http://seclists.org/fulldisclosure/2025/Apr/14 url
- https://security.netapp.com/advisory/ntap-20241108-0002/ url
- https://nvd.nist.gov/vuln/detail/CVE-2021-23358 advisory
- https://github.com/advisories/GHSA-cf4h-3jhx-xvhq advisory
…and 16 more