CVE-2021-23358 json
Arbitrary Code Injection
published 2021-03-29 5 y ago modified 2026-06-17 4 mo ago also GHSA-cf4h-3jhx-xvhq , EUVD-2021-1042
- cvss
- 3.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.2%
- EPSS 4.2% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm underscore 1.12.1
- n/a underscore 1.12.1, 1.13.0-2
- underscore Debian 14, Debian 13, Debian 12 1.9.1~dfsg-2
debian advisories DEBIAN-CVE-2021-23358
- underscore Ubuntu 16.04 LTS 1.7.0~dfsg-1ubuntu1.1
- underscore Ubuntu 18.04 LTS 1.8.3~dfsg-1ubuntu0.1
- underscore Ubuntu 20.04 LTS 1.9.1~dfsg-1ubuntu0.20.04.1
- underscore Ubuntu Pro 14.04 LTS 1.4.4-2ubuntu1+esm1
ubuntu advisories UBUNTU-CVE-2021-23358
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ceph ceph storage 7.1 2:18.2.1-381.el8cp
- ceph ceph storage 7.1 2:18.2.1-381.el9cp
- cephadm ceph storage 7.1 2:18.2.1-381.el9cp
- librbd1 ceph storage 7.1 2:18.2.1-381.el8cp
- librbd1 ceph storage 7.1 2:18.2.1-381.el9cp
- librgw2 ceph storage 7.1 2:18.2.1-381.el8cp
- librgw2 ceph storage 7.1 2:18.2.1-381.el9cp
- rbd-nbd ceph storage 7.1 2:18.2.1-381.el8cp
red hat advisories RHSA-2026:2769RHSA-2022:6393RHSA-2021:2865
- nodejs-underscore openSUSE Tumbleweed 1.13.1-1.3
- nodejs-underscore openSUSE Leap 15.2 1.13.1-lp152.4.3.1
opensuse advisories openSUSE-SU-2024:11095-1openSUSE-SU-2021:0601-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23358 updated cvss 7.2
nodejs-underscore: Arbitrary code execution via the template function
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/grc-ui-rhel8, rhacm2/search-ui-rhel8affected: no fix available
-
Red Hat Ceph Storage 3 grafanaaffected: no fix planned “Out of support scope”
-
Red Hat Ceph Storage 6 grafana Red Hat Ceph Storage 8 grafana Red Hat Ceph Storage 9 grafanaaffected: no fix available
-
Red Hat Enterprise Linux 7 pki-ca, pki-kra, pki-base, pki-core, pki-tools, pki-server, +3 more Red Hat Enterprise Linux 8 jss, pki-ca, idm-jss, ldapjdk, pki-kra, pki-acme, +25 more Red Hat OpenShift Container Platform 3.11 openshift3/grafanaaffected: no fix planned “Will not fix”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-grafanaaffected: no fix available “Fix deferred”
-
Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8affected: no fix available
-
Red Hat Quay 3 quay/quay-rhel8 Red Hat Storage 3 grafanaaffected: no fix available “Fix deferred”
-
Red Hat Advanced Cluster Management for Kubernetes 2.0 for RHEL 8 rhacm2/acm-operator-bundle v2.0.10-8fixed: vendor fix RHSA-2021:1448
show 5 moreshow fewer
-
Red Hat Ceph Storage 7.1 Tools ceph 18.2.1-381.el8cp, ceph 18.2.1-381.el9cp, cephadm 18.2.1-381.el9cp, librbd1 18.2.1-381.el8cp, librbd1 18.2.1-381.el9cp, librgw2 18.2.1-381.el8cp, +37 morefixed: vendor fix RHSA-2026:2769
-
Red Hat Ceph Storage 8 rhceph 1770630607fixed: vendor fix RHSA-2026:2737
-
Red Hat Ceph Storage 9 rhceph 1771399331fixed: vendor fix RHSA-2026:3406
-
Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 ovirt-web-ui 1.9.1-1.el8ev, ovirt-engine-ui-extensions 1.2.7-1.el8evfixed: vendor fix RHSA-2021:2865
-
Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8 Red Hat Ceph Storage 8 rhceph 1770630907, rhceph 1770631713, rhceph 1770631941, rhceph 1770632172, rhceph 1770632233 Red Hat Ceph Storage 9 rhceph 1771398877, rhceph 1771399022, rhceph 1771399060, rhceph 1771399158, rhceph 1771816028 Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 rhvm 4.5.2.4-0.1.el8ev, rhvm 4.4.7.6-0.11.el8ev, ovirt-web-ui 1.7.0-1.el8ev, ovirt-engine 4.5.2.4-0.1.el8ev, ovirt-engine-dwh 4.5.4-1.el8ev, ovirt-engine 4.4.7.6-0.11.el8ev, +54 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
4.20% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.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 |
| CNA | 3.1 | 3.3 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | underscore | >=1.3.2, <1.12.1 |
1.12.1 |
Affected products
- n/a underscore
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/jashkenas/underscore/pull/2917
web
-
github.com
/jashkenas/underscore/commit/4c73526d43838ad6ab43a6134728776632adeb66
web
-
snyk.io
/vuln/SNYK-JS-UNDERSCORE-1080984
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505
web, exploit, third-party-advisory
-
debian.org
/security/2021/dsa-4883
vendor-advisory, web, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV/
vendor-advisory
-
github.com
/jashkenas/underscore/blob/master/modules/template.js%23L71
web, broken-link
-
lists.debian.org
/debian-lts-announce/2021/03/msg00038.html
mailing-list, web, third-party-advisory
-
lists.apache.org
/thread.html/re69ee408b3983b43e9c4a82a9a17cbbf8681bb91a4b61b46f365aeaf%40%3Cissues.cordova.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r5df90c46f7000c4aab246e947f62361ecfb849c5a553dcdb0ef545e1%40%3Cissues.cordova.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/raae088abdfa4fbd84e1d19d7a7ffe52bf8e426b83e6599ea9a734dba%40%3Cissues.cordova.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/rbc84926bacd377503a3f5c37b923c1931f9d343754488d94e6f08039%40%3Cissues.cordova.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r770f910653772317b117ab4472b0a32c266ee4abbafda28b8a6f9306%40%3Cissues.cordova.apache.org%3E
mailing-list, web
-
tenable.com
/security/tns-2021-14
web, third-party-advisory
- security.netapp.com /advisory/ntap-20240808-0003/
-
seclists.org
/fulldisclosure/2025/Apr/14
web
- security.netapp.com /advisory/ntap-20241108-0002/
-
nvd.nist.gov
/vuln/detail/CVE-2021-23358
advisory
-
npmjs.com
/package/underscore
web
-
security.netapp.com
/advisory/ntap-20241108-0002
web
-
security.netapp.com
/advisory/ntap-20240808-0003
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z
web
-
lists.apache.org
/thread.html/re69ee408b3983b43e9c4a82a9a17cbbf8681bb91a4b61b46f365aeaf@%3Cissues.cordova.apache.org%3E
web
-
lists.apache.org
/thread.html/rbc84926bacd377503a3f5c37b923c1931f9d343754488d94e6f08039@%3Cissues.cordova.apache.org%3E
web
-
lists.apache.org
/thread.html/raae088abdfa4fbd84e1d19d7a7ffe52bf8e426b83e6599ea9a734dba@%3Cissues.cordova.apache.org%3E
web
-
lists.apache.org
/thread.html/r770f910653772317b117ab4472b0a32c266ee4abbafda28b8a6f9306@%3Cissues.cordova.apache.org%3E
web
-
lists.apache.org
/thread.html/r5df90c46f7000c4aab246e947f62361ecfb849c5a553dcdb0ef545e1@%3Cissues.cordova.apache.org%3E
web
-
github.com
/jashkenas/underscore/releases/tag/1.12.1
web
-
github.com
/jashkenas/underscore
package
Sources
- CVE List CVE-2021-23358
- GitHub Advisory GHSA-cf4h-3jhx-xvhq
- NVD CVE-2021-23358
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.