CVE-2021-23358
JSON

3.3low

Arbitrary Code Injection

Severity
3.3low CVSS:3.1 by snyk
Exploit likelihood
4.20% (higher than 91% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-cf4h-3jhx-xvhq

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

Product or packageVersionsReported by
underscorefrom 1.13.0-0 before unspecified, from unspecified before 1.13.0-2, from 1.3.2 before unspecified, from unspecified before 1.12.1CVE List
underscore (npm)from 1.3.2 before 1.12.1GitHub Advisory Database
underscorejs underscorefrom 1.3.2 before 1.12.1, from 1.13.0-0 before 1.13.0-2NVD
debian debian_linux9.0, 10.0NVD
tenable tenable.scup to 5.18.0NVD
fedoraproject fedora33, 34NVD

All scores

snyk3.3low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

CWE-94

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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 Execution via the template function, particularly when a variable property is passed as an argument as it is not sanitized.

NVD (es)

El paquete underscore desde la versión 1.13.0-0 y anterior a la versión 1.13.0-2, desde la versión 1.3.2 y anterior a la versión 1.12.1, son vulnerables a una ejecución de código arbitraria por medio de la función template, particularmente cuando una propiedad variable es pasada como un argumento ya que no es saneado

References

https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984exploit, third-party-advisory, web
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503exploit, third-party-advisory, web
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504exploit, third-party-advisory, web
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505exploit, third-party-advisory, web
https://github.com/jashkenas/underscore/blob/master/modules/template.js%23L71broken-link, web
https://lists.debian.org/debian-lts-announce/2021/03/msg00038.htmlmailing-list, third-party-advisory, web
https://www.debian.org/security/2021/dsa-4883third-party-advisory, vendor-advisory, web
https://lists.apache.org/thread.html/re69ee408b3983b43e9c4a82a9a17cbbf8681bb91a4b61b46f365aeaf%40%3Cissues.cordova.apache.org%3Emailing-list, web
https://lists.apache.org/thread.html/r5df90c46f7000c4aab246e947f62361ecfb849c5a553dcdb0ef545e1%40%3Cissues.cordova.apache.org%3Emailing-list, web
https://lists.apache.org/thread.html/raae088abdfa4fbd84e1d19d7a7ffe52bf8e426b83e6599ea9a734dba%40%3Cissues.cordova.apache.org%3Emailing-list, web
https://lists.apache.org/thread.html/rbc84926bacd377503a3f5c37b923c1931f9d343754488d94e6f08039%40%3Cissues.cordova.apache.org%3Emailing-list, web
https://lists.apache.org/thread.html/r770f910653772317b117ab4472b0a32c266ee4abbafda28b8a6f9306%40%3Cissues.cordova.apache.org%3Emailing-list, web

Sources

SourceRecordLicence
CVE ListCVE-2021-23358 changed 2025-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-cf4h-3jhx-xvhq changed 2025-11-04CC-BY-4.0
NVDCVE-2021-23358 changed 2026-06-17Public domain