CVE-2021-23358
HIGH 7.2CVSS 3.1Arbitrary Code Execution in underscore
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.
- Published
- 29 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-cf4h-3jhx-xvhq
- Sources
- NVDJSONOSV GHSA-cf4h-3jhx-xvhqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | underscorejs | underscorecpe:2.3:a:underscorejs:underscore:*:*:*:*:*:node.js:*:* |
>= 1.3.2, < 1.12.1 | 1.12.1 |
| NVD | underscorejs | underscorecpe:2.3:a:underscorejs:underscore:*:*:*:*:*:node.js:*:* |
>= 1.13.0-0, < 1.13.0-2 | 1.13.0-2 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | tenable | tenable.sccpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:* |
<= 5.18.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | npm | underscore | >= 1.3.2, < 1.12.1 | 1.12.1 |
References
- https://github.com/jashkenas/underscore/blob/master/modules/template.js%23L71 · Broken Link, WEB
- https://lists.apache.org/thread.html/r5df90c46f7000c4aab246e947f62361ecfb849c5a553dcdb0ef545e1%40%3Cissues.cordova.apache.org%3E · WEB
- https://lists.apache.org/thread.html/r770f910653772317b117ab4472b0a32c266ee4abbafda28b8a6f9306%40%3Cissues.cordova.apache.org%3E · WEB
- https://lists.apache.org/thread.html/raae088abdfa4fbd84e1d19d7a7ffe52bf8e426b83e6599ea9a734dba%40%3Cissues.cordova.apache.org%3E · WEB
- https://lists.apache.org/thread.html/rbc84926bacd377503a3f5c37b923c1931f9d343754488d94e6f08039%40%3Cissues.cordova.apache.org%3E · WEB
- https://lists.apache.org/thread.html/re69ee408b3983b43e9c4a82a9a17cbbf8681bb91a4b61b46f365aeaf%40%3Cissues.cordova.apache.org%3E · WEB
- https://lists.debian.org/debian-lts-announce/2021/03/msg00038.html · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV/ · WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984 · Exploit, Third Party Advisory, WEB
- https://www.debian.org/security/2021/dsa-4883 · Third Party Advisory, WEB
- https://www.tenable.com/security/tns-2021-14 · Third Party Advisory, WEB
- http://seclists.org/fulldisclosure/2025/Apr/14 · WEB
- https://security.netapp.com/advisory/ntap-20240808-0003/ · WEB
- https://security.netapp.com/advisory/ntap-20241108-0002/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23358 · ADVISORY
- https://github.com/jashkenas/underscore/pull/2917 · WEB
- https://github.com/jashkenas/underscore/commit/4c73526d43838ad6ab43a6134728776632adeb66 · WEB
- https://www.npmjs.com/package/underscore · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z · WEB
- https://lists.apache.org/thread.html/re69ee408b3983b43e9c4a82a9a17cbbf8681bb91a4b61b46f365aeaf@%3Cissues.cordova.apache.org%3E · WEB
- https://lists.apache.org/thread.html/rbc84926bacd377503a3f5c37b923c1931f9d343754488d94e6f08039@%3Cissues.cordova.apache.org%3E · WEB
- https://lists.apache.org/thread.html/raae088abdfa4fbd84e1d19d7a7ffe52bf8e426b83e6599ea9a734dba@%3Cissues.cordova.apache.org%3E · WEB
- https://lists.apache.org/thread.html/r770f910653772317b117ab4472b0a32c266ee4abbafda28b8a6f9306@%3Cissues.cordova.apache.org%3E · WEB
- https://lists.apache.org/thread.html/r5df90c46f7000c4aab246e947f62361ecfb849c5a553dcdb0ef545e1@%3Cissues.cordova.apache.org%3E · WEB
- https://github.com/jashkenas/underscore/releases/tag/1.12.1 · WEB
- https://github.com/jashkenas/underscore · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 29 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 May 2021)