VDB

CVE-2021-23358

CVE-2021-23358 PUBLISHED CVSS 3.3 LOW

Arbitrary Code Injection

Reported by snyk · Published March 29, 2021

underscore is fixed in 1.12.1 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
underscorenpm1.12.1
underscoreUbuntu:18.04:LTS1.8.3~dfsg-1ubuntu0.1
tenable.sctenable5.18.0
underscoreUbuntu:16.04:LTS1.7.0~dfsg-1ubuntu1.1
underscoreUbuntu:20.04:LTS1.9.1~dfsg-1ubuntu0.20.04.1
underscoreunderscorejs1.13.0-2, 1.12.1
underscoren/aunspecified, 1.13.0-2, 1.12.1
underscoreUbuntu:Pro:14.04:LTS1.4.4-2ubuntu1+esm1

Risk scores

CVSS 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

Affected products

VendorProductVersions
n/aunderscore1.13.0-0, unspecified, 1.3.2
npmunderscore1.3.2
underscorejsunderscore
n/aunderscore1.13.0-0, *, 1.3.2

Timeline

  • Mar 29, 2021 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Oct 21, 2023 PoC Published
  • Mar 7, 2026 Distribution Patch (28 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (30 in total, the first dated here)
  • Aug 25, 2026 Coalition ESS Score
  • Sep 3, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-23358
vulnetix vdb fixes CVE-2021-23358

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23358/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

…and 16 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›