Low severity3.3NVD Advisory· Published Apr 16, 2026· Updated May 26, 2026
CVE-2026-40505
CVE-2026-40505
Description
MuPDF before 1.27 contains an ANSI injection vulnerability in mutool that allows attackers to inject arbitrary ANSI escape sequences through crafted PDF metadata fields. Attackers can embed malicious ANSI escape codes in PDF metadata that are passed unsanitized to terminal output when running mutool info, enabling them to manipulate terminal display for social engineering attacks such as presenting fake prompts or spoofed commands.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
4Patches
Vulnerability mechanics
References
4- cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/nvdPatch
- github.com/ArtifexSoftware/mupdf/commit/0f17d789fe8c29b41e47663be82514aaca3a4dfbnvdPatch
- www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadatanvdThird Party Advisory
- github.com/ArtifexSoftware/mupdf/releases/tag/1.27.0nvdProduct
News mentions
0No linked articles in our index yet.