CVE-2026-40505CWE-150

MuPDF < 1.27 mutool ANSI Injection via Metadata

Medium · published April 16, 2026

CVSS v4.0
4.8
EPSS
0%
Percentile
7.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
4.8 · MEDIUM
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS
0.00186 · 7.8th percentile
Weakness
CWE-150 · Improper Neutralization of Escape, Meta, or Control Sequences
Published
2026-04-16T01:20Z
EPSS history
Timeline
  • 16 APR 01:20Z
    MuPDF < 1.27 mutool ANSI Injection via Metadata
    cvelistv5