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

CVE-2021-21315: OS Command Injection

February 16, 2021 (updated November 7, 2023)

The System Information Library for Node.As a workaround instead of upgrading, be sure to check or sanitize service parameters that are passed to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() … do only allow strings, reject any arrays. String sanitation works as expected.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2021-21315 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 before 5.3.1

Fixed versions

  • 5.3.1

Solution

Upgrade to version 5.3.1 or above.

Impact 7.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/systeminformation/CVE-2021-21315.yml

Spotted a mistake? Edit the file on GitLab.

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

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