# CVE-2026-40505

> Vulnerability · severity: **LOW** (CVSS 3.3).

## 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.

## Key facts

- **CVE ID:** CVE-2026-40505
- **Published:** 2026-04-16
- **CVSS severity:** LOW
- **CVSS base score:** 3.3
- **CWE codes:** CWE-150

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40505

## Citation

> AI Analytics. CVE-2026-40505. Retrieved 2026-07-24 from https://api.ai-analytics.org/cve/CVE-2026-40505. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*