CVE-2021-23358Arbitrary Code Injection
- 3.3LowCVSS base score
- 4.2%Exploitation in 30 daysEPSS · top 8.9% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By snyk
- 3 months later
· 3 months later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | Low3.3 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C |
| NVDNVD · Modified | 3.1 | High7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.2% · top 8.9% of all CVEs (12 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 3.3.
Affected products
underscore
- affected 1.13.0-0 – < unspecified
- affected unspecified – < 1.13.0-2
- affected 1.3.2 – < unspecified
- affected unspecified – < 1.12.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmunderscoreGHSA-cf4h-3jhx-xvhq (opens in a new tab)
References
References18
- https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/jashkenas/underscore/blob/master/modules/template.js%23L71 (opens in a new tab)x_refsource_MISCx_transferred
- [debian-lts-announce] 20210331 [SECURITY] [DLA 2613-1] underscore security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- DSA-4883 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek closed issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek commented on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley opened a new issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley commented on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley edited a comment on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.tenable.com/security/tns-2021-14 (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2021-e49f936d9f (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2021-f278299902 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://security.netapp.com/advisory/ntap-20240808-0003/ (opens in a new tab)
- http://seclists.org/fulldisclosure/2025/Apr/14 (opens in a new tab)
- https://security.netapp.com/advisory/ntap-20241108-0002/ (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-1042 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-cf4h-3jhx-xvhq (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-23358)Record last updated .