Skip to main content
Public proof of conceptFix available

CVE-2021-23358

A public proof of concept exists; no exploitation attested.

  • Published2021-03-29
  • WeaknessCWE-94

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-03-2914:15CVE publishedNVD

Versions per branch

NVD · OSV
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
33.x= 33no fix published
34.x= 34no fix published
Underscorejs underscore
BranchAffectedFixed in
1.13≥ 1.13.0-0, < 1.13.0-21.13.0-2
1.x≥ 1.3.2, < 1.12.11.12.1

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As snyk, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • underscore
    Affected
    • = 1.13.0-0no fix statedcustom
    • < 1.13.0-2fixed in 1.13.0-2custom
    • = 1.3.2no fix statedcustom
    • < 1.12.1fixed in 1.12.1custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2021-08-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/underscoreRoot:npmall versions · fixed in 1.7.0-root.io.1
  • @rootio/underscoreRoot:npmall versions · fixed in 1.12.1-root.io.1
  • @rootio/underscoreRoot:npmall versions · fixed in 1.7.0-root.io.2
  • @rootio/underscoreRoot:npmall versions · fixed in 1.8.3-root.io.1
  • @rootio/underscoreRoot:npmall versions · fixed in 1.8.3-root.io.2
  • @rootio/underscoreRoot:npmall versions · fixed in 1.8.3-root.io.3
  • cephRed Hat:ceph_storage:8.1::el9all versions · fixed in 2:19.2.1-405.el9cpand 58 other packages
  • cephRed Hat:ceph_storage:7.1::el9all versions · fixed in 2:18.2.1-381.el9cpand 55 other packages

30 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-23358 Red Hat Product Security275 products fixed · 57 known affected

    nodejs-underscore: Arbitrary code execution via the template function

    rhacm2/grc-ui-rhel8 as a component of Red Hat Advanced Cluster Management for Kubernetes 2 · rhacm2/search-ui-rhel8 as a component of Red Hat Advanced Cluster Management for Kubernetes 2 · grafana as a component of Red Hat Ceph Storage 3 · +54 more

  • RHSA-2026:61939 Red Hat Product Security316 products fixed

    Red Hat Security Advisory: Red Hat Ceph Storage 8.1 security and bug fix updates

  • RHSA-2026:3406 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: New container image: rhceph-9.0

  • RHSA-2026:2769 Red Hat Product Security262 products fixed

    Red Hat Security Advisory: Red Hat Ceph Storage 7.1 security and bug fix updates

  • RHSA-2026:2737 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Ceph Storage

  • RHSA-2022:6393 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: RHV Manager (ovirt-engine) [ovirt-4.5.2] bug fix and security update

3 more advisories

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2026:61939 · 316 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258 For supported configurations, refer to: https://access.redhat.com/articles/1548993
  2. Vendor fix Red Hat Product Security RHSA-2026:3406 · 4 productsThe container images provided by this update can be downloaded from the Red Hat container registry at registry.redhat.io using the "podman pull" command.
  3. Vendor fix Red Hat Product Security RHSA-2022:6393 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/2974891
  4. Vendor fix Red Hat Product Security RHSA-2021:1499 · 77 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.2/html-single/install/index#instal…
  5. Vendor fix Red Hat Product Security RHSA-2021:1448 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.0/html-single/install/index#instal…
  6. No fix available, says the vendor Red Hat Product Security CVE-2021-23358 · 4 productsFix deferred

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-08-29
  • CNACVSS 3.13.3known since 2026-10-23
  • NVDCVSS 3.17.2read 2026-10-23
  • NVDCVSS 2.06.5read 2026-10-23
  • NVDweakness (CWE)CWE-94read 2026-10-23
  • FIRST EPSSEPSS score4.2 %2026-12-04
  • PoC-in-GitHubproof of concept2known since 2026-11-01
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryCritical2021-03-31

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Published
2021-03-29
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-cf4h-3jhx-xvhq

Frequently asked questions

What is CVE-2021-23358?

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.

Is CVE-2021-23358 actively exploited?

A proof-of-concept exploit exists for CVE-2021-23358, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2021-23358?

CVE-2021-23358 has a CVSS v3 base score of 7.2 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

Running underscore? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record