GitHub Advisoryadvisory · npm

GHSA-549h-r7g9-2qpf n158 vulnerable to Command Injection due to improper input sanitization in the 'module.exports' function

HIGH Published 2023-05-27 Modified 2025-01-14 Official page ↗
Aliases
CVE-2023-26127
Ecosystem
npm
Packages
n158
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-74, CWE-77, CWE-78
Reviewed
2023-05-30

Affected packages

• npm n158: <= 1.4.1 (no fix yet)

Description

All versions of the package n158 are vulnerable to Command Injection due to improper input sanitization in the 'module.exports' function. Note: To execute the code snippet and potentially exploit the vulnerability, the attacker needs to have the ability to run Node.js code within the target environment. This typically requires some level of access to the system or application hosting the Node.js environment.

Related

Alias · CVE (1)

  • CVE-2023-26127 All versions of the package n158 are vulnerable to Command Injection due to improper input sanitization in the 'module.exports' function. vulnerability

Weakness · CWE (3)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness
  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References