Home / underscore / underscore / CVE-2021-23358
CVE-2021-23358: is it exploited, and which versions of underscore are affected and fixed?
CVE-2021-23358 is a code injection (remote code execution) vulnerability in underscore. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: underscore from 1.3.2 before 1.12.1 (GitHub advisory GHSA-cf4h-3jhx-xvhq). Fixed in 1.12.1 (GitHub advisory GHSA-cf4h-3jhx-xvhq). Severity: Low (3.3, CVSS 3.1, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 28, 2026, 20:17 UTC and NVD November 19, 2026, 07:59 UTC.
What is CVE-2021-23358?
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.
From the CVE record by snyk, last updated November 3, 2025, 21:44 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| underscore | from 1.13.0-0 before unspecified before 1.13.0-2 from 1.3.2 before unspecified before 1.12.1 | unspecified, 1.13.0-2, 1.12.1 |
As the CVE record by snyk states it, last updated November 3, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | underscore | >= 1.3.2, < 1.12.1 | 1.12.1 | GHSA-cf4h-3jhx-xvhq |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 4, 2025. Summary: Arbitrary Code Execution in underscore.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| underscorejs | underscore | from 1.3.2 before 1.12.1 | application |
| underscorejs | underscore | from 1.13.0-0 before 1.13.0-2 | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| tenable | tenable.sc | through 5.18.0 | application |
| fedoraproject | fedora | 33 | operating system |
| fedoraproject | fedora | 34 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 03:38 UTC.
How severe is CVE-2021-23358?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 3.3 | CVSS 3.1 | 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 | snyk |
| High 7.2 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.5 | CVSS 2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-23358 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, August 29, 2024)
- EPSS
- 4.20% probability of exploitation activity in the next 30 days, percentile 91.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and 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-2335 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/
Who found and reported it?
- Alessio Della Libera (@d3lla) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 8, 2021
- Published
- March 29, 2021, 13:15 UTC
- CVE record updated
- November 3, 2025, 21:44 UTC by snyk
- NVD
- Modified, last modified June 17, 2026, 03:38 UTC
- Last checked
- CVE list November 28, 2026, 20:17 UTC; NVD November 19, 2026, 07:59 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2021-23358
Is CVE-2021-23358 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 4.20% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of underscore are affected by CVE-2021-23358?
underscore from 1.3.2 before 1.12.1, per the GitHub advisory GHSA-cf4h-3jhx-xvhq. The tables above give every range the sources list.
Which version fixes CVE-2021-23358?
1.12.1, per the GitHub advisory GHSA-cf4h-3jhx-xvhq. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-23358?
Low (3.3, CVSS 3.1, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2021-23358?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.