CVE-2026-40505

Low

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.

SeverityLow
CVSS3.3
Exploit probability—
ProductArtifex Mupdf
PublishedApr 16, 2026
First seenApr 16, 2026
Weakness typeCWE-150CWE-150

How to fix

Affected products

ProductAffected versionsFixed in
artifex mupdfv < 1.27.01.27.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.