Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. underscore
  4. ›
  5. CVE-2021-23358

CVE-2021-23358: Code Injection

March 29, 2021 (updated November 9, 2023)

The underscore package is 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-23358

Code Behaviors & Features

Detect and mitigate CVE-2021-23358 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.3.2 before 1.12.1, all versions starting from 1.13.0-0 before 1.13.0-2

Fixed versions

  • 1.12.1
  • 1.13.1

Solution

Upgrade to versions 1.12.1, 1.13.1 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/underscore/CVE-2021-23358.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.