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

- Severity: High 7.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Published: 2023-05-27T05:00:03.774Z
- Modified: 2026-06-17T05:42:44.217Z
- Also known as: GHSA-549h-r7g9-2qpf
- Weaknesses: CWE-74, CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- n158: before *
- n158 (npm): up to 1.4.1
- n158_project n158: no versions given

## Every score

- snyk: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-N158-3183746> (third-party-advisory, web)
- <https://github.com/dsilva2401/n158/blob/master/src/cli/initProject.js%23L8> (broken-link)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-26127> (advisory)
- <https://github.com/dsilva2401/n158> (package)
- <https://github.com/dsilva2401/n158/blob/master/src/cli/initProject.js#L8> (web)

## Sources

- CVE List: [CVE-2023-26127](https://www.cve.org/CVERecord?id=CVE-2023-26127), CVE Terms of Use, modified 2025-01-13
- GitHub Advisory Database: [GHSA-549h-r7g9-2qpf](https://github.com/advisories/GHSA-549h-r7g9-2qpf), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2023-26127](https://nvd.nist.gov/vuln/detail/CVE-2023-26127), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26127 · Whole record: https://cve.day/CVE-2023-26127.json · Rebuilt by cve.day 2026-11-25T22:58:24.416Z
