CVE-2023-26127 n158 vulnerable to Command Injection due to improper input sanitization in the 'module.exports' function

High 7.8 Published Updated

Attackers with Node.js execution access can exploit improper input sanitization in the n158 package to execute arbitrary commands.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-26127?

CVE-2023-26127 is a high-severity command injection vulnerability in n158, published on 27 May 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-77, CWE-78

Which versions are affected by CVE-2023-26127?

2 open source packages ship an affected version, including n158. It affects 1 product.

PackageAffectedFixed in
n158 npmAll versions to 1.4.1None
n158 npmAll versions to 1.4.1None

Products include N158 Project N158.

How do I fix CVE-2023-26127?

No fix has been published for CVE-2023-26127 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2023-26127 being exploited?

There is no known exploitation of CVE-2023-26127 in the wild and no public exploit code.

Sources

Also known as GHSA-549h-r7g9-2qpf.

Is CVE-2023-26127 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free