CVE-2026-40505

published 16 Apr 2026 · updated 8 Nov 2026

MuPDF < 1.27 mutool ANSI Injection via Metadata

3.3LowCVSS 3.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.27.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Artifex Software<1.27.0, =0f17d789fe8c29b41e47663be82514aaca3a4dfb1.27.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40505 severity on Zeptric[![CVE-2026-40505](https://zeptric.io/badge/cve/CVE-2026-40505.svg)](https://zeptric.io/cve/CVE-2026-40505)