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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | underscore | 1.13.0-0 – < unspecified, unspecified – < 1.13.0-2, 1.3.2 – < unspecified, unspecified – < 1.12.1 | unspecified |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | underscore | 1.9.1~dfsg-2 | — |
| Debian 13 | underscore | 1.9.1~dfsg-2 | — |
| Debian 12 | underscore | 1.9.1~dfsg-2 | — |
| Debian 10 | underscore | 1.9.1~dfsg-1+deb10u1 | DSA-4883-1 |
| Debian 9 | underscore | 1.8.3~dfsg-1+deb9u1 | DLA-2613-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | underscore | 1.9.1~dfsg-1ubuntu0.20.04.1 | USN-4913-1 |
| Ubuntu 18.04 LTS | underscore | 1.8.3~dfsg-1ubuntu0.1 | USN-4913-1 |
| Ubuntu 16.04 LTS | underscore | 1.7.0~dfsg-1ubuntu1.1 | USN-4913-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | underscore | 1.4.4-2ubuntu1+esm1 | USN-4913-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhev Manager 4 | ovirt-engine-ui-extensions | 1.2.7-1.el8ev | RHSA-2022:6393, RHSA-2021:2865 |
| Red Hat Rhev Manager 4 | ovirt-log-collector | 4.4.7-2.el8ev | RHSA-2022:6393 |
| Red Hat Rhev Manager 4 | ovirt-web-ui | 1.9.1-1.el8ev | RHSA-2022:6393 |
| Red Hat Rhev Manager 4 | rhvm +19 | 4.5.2.4-0.1.el8ev | RHSA-2022:6393 |
| Red Hat Ceph Storage 7 | ceph +25 | 2:18.2.1-381.el8cp | RHSA-2026:2769 |
| Red Hat Ceph Storage 7 | cephadm | 2:18.2.1-381.el9cp | RHSA-2026:2769 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | nodejs-underscore | 1.13.1-1.3 | openSUSE-SU-2024:11095-1 |
| openSUSE Leap 15.2 | nodejs-underscore | 1.13.1-lp152.4.3.1 | openSUSE-SU-2021:0601-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | js-jquery | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
MehdiBoukhobza/SandBox_CVE-2021-23358 ★ 1 · Jul 4, 2024
-
EkamSinghWalia/Detection-script-for-cve-2021-23358 ★ 1 · Feb 25, 2023
Detection script for cve-2021-23358
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | underscore | >= 1.3.2, < 1.12.1 | 1.12.1 | GHSA-cf4h-3jhx-xvhq |
Advisories 13
- RHSA-2026:2769 Red Hat Security Advisory: Red Hat Ceph Storage 7.1 security and bug fix updates Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2021:2865 Red Hat Security Advisory: RHV Manager (ovirt-engine) security update [ovirt-4.4.7] Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2022:6393 Red Hat Security Advisory: RHV Manager (ovirt-engine) [ovirt-4.5.2] bug fix and security update Red Hat Security Advisories (RHSA) · Oct 13, 2026
- WID-SEC-2026-2460 Atlassian Bamboo, Bitbucket, Confluence, Fisheye, Crucible, Jira und Jira Service Management: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 1, 2026
- WID-SEC-2022-1354 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 3, 2026
- USN-4913-1 underscore vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- DSA-4883-1 underscore - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2613-1 underscore - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2021:0601-1 Security update for nodejs-underscore SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11095-1 nodejs-underscore-1.13.1-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- NCSC-2024-0413 Kwetsbaarheden verholpen in Oracle Commerce NCSC-NL (Netherlands) · Oct 17, 2024
- WID-SEC-2024-3197 Oracle Commerce: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 15, 2024
- WID-SEC-2023-0136 Oracle Construction and Engineering: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 17, 2023
References
- https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505
- https://github.com/jashkenas/underscore/blob/master/modules/template.js%23L71
- [debian-lts-announce] 20210331 [SECURITY] [DLA 2613-1] underscore security update mailing-list
- DSA-4883 vendor-advisory
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek closed issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek commented on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley opened a new issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley commented on issue #163: Security Vulnerability in underscore <= 1.12.0 CVE-2021-23358 mailing-list
- [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
- https://www.tenable.com/security/tns-2021-14
- FEDORA-2021-e49f936d9f vendor-advisory
- FEDORA-2021-f278299902 vendor-advisory