CVE-2026-105750: Docling: `enable_local_fetch` is not enforced in HTML browser-rendering mode
Summary When the HTML backend renders pages in a headless browser (HTMLBackendOptions(renderpage=True)), the enablelocalfetch option is not enforced. A crafted HTML file can embed an arbitrary local file (for example with ), and that file's contents appear in the page image attached to the returned DoclingDocument.
Published Oct 6, 2026
Affected packages
docling
- Ecosystem
- PyPI
- Affected
- >= 2.82.0, < 2.118.1
- Fixed in
- 2.118.1
- Check
pip show docling
docling-slim
- Ecosystem
- PyPI
- Affected
- >= 2.92.0, < 2.118.1
- Fixed in
- 2.118.1
- Check
pip show docling-slim
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
When the HTML backend renders pages in a headless browser (HTMLBackendOptions(render_page=True)), the enable_local_fetch option is not enforced. A crafted HTML file can embed an arbitrary local file (for example with <iframe src="file:///...">), and that file's contents appear in the page image attached to the returned DoclingDocument.
Details
In render mode, Playwright requests are filtered by HTMLDocumentBackend._get_browser_request_block_reason. In affected versions, this check allowed file: URLs unconditionally, before reading any option. As a result:
enable_local_fetch=Falsedid not block local file access, and- even with
enable_local_fetch=True, file access was not limited to the source document's directory, unlike the non-render path (ImageResourceLoader), which rejects absolute paths and path traversal.
Versions 2.82.0–2.90.x did no request filtering in render mode at all.
The browser runs with JavaScript disabled (from 2.91.0), so disclosure is passive: only what Chromium renders visibly inside the page viewport ends up in the page image.
Only Path inputs are affected. They are loaded through a file:// URL. Stream inputs are loaded with page.set_content() into an opaque origin, from which Chromium does not load file:// subresources.
Impact
An attacker who can submit HTML for conversion can read any text file the conversion process can read (for example .env files, credential files, or other users' documents on a shared host) by having it rendered into the page image.
Only applications that meet all of these conditions are affected:
- they set
HTMLBackendOptions(render_page=True)in Python, - they have the optional
playwrightdependency installed, and - they pass untrusted HTML as a filesystem
Path.
The following are not affected: the default configuration (render_page=False), the docling CLI, docling-serve, and the EPUB, Markdown, XBRL and email backends.
Patches
Fixed in 2.118.1 (#3948). In render mode, file: requests are now blocked unless enable_local_fetch=True, and allowed requests are limited to the source document's directory.
Workarounds
If you can't upgrade, don't use render_page=True on untrusted HTML, or pass the input as a stream instead of a Path.
Credits
Reported by @priyankn.
Credited to priyankn, DavidCarliez.
References
- https://github.com/docling-project/docling/security/advisories/GHSA-q43m-vhcp-mhvm
- https://github.com/docling-project/docling/pull/3948
- https://github.com/docling-project/docling/commit/1612b8875b0937447ce3122536fb5360a7102a0a
- https://github.com/docling-project/docling/releases/tag/v2.118.1
- https://github.com/advisories/GHSA-q43m-vhcp-mhvm
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-105742
Docling: Configured HTTP headers sent to every remote image host named by a document
low3.7Oct 7, 2026CVE-2026-105743
Docling has SSRF guard bypass in remote resource fetching (DNS rebinding / multi-record resolution; no IP validation in HTML render mode)
medium4.0Oct 7, 2026CVE-2026-105744
Docling has arbitrary file read/write (and command execution when shell-escape is enabled) when rendering untrusted TikZ with the opt-in Tectonic engine
high7.5Oct 7, 2026CVE-2026-105745
Docling imports plugin entry points before the allow_external_plugins check
medium6.7Oct 7, 2026CVE-2026-105748
Docling: Crafted DoclingDocument JSON embeds local image files into converted output
medium4.3Oct 7, 2026CVE-2026-105749
Docling: Unbounded table rowspan/colspan in HTML, JATS, ODS and BoxNote backends causes CPU/memory exhaustion
medium6.5Oct 7, 2026
