CVE-2026-40505: MuPDF before 1.27 contains an ANSI injection vulnerability in mutool that allows attackers to inject arbitrary
CVE-2026-40505 is a low-severity flaw (CVSS 3.3) affecting mupdf. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.3 (Low) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.2% (top 94%) |
| CISA exploited list | No |
| Weakness | CWE-150 |
| Published | 2026-04-16 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40505?
mupdf: upgrade to 1.27.0. Exact commands for each OS are on this page.
Is CVE-2026-40505 being exploited?
CVE-2026-40505 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40505 affect?
CVE-2026-40505 affects mupdf. Severity is low (CVSS 3.3). 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 a
How urgent is CVE-2026-40505?
Priority 13/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-7233 LOW 3.3 UPGRADE A vulnerability was determined in Artifex MuPDF up to 1.28.0