Loading advisory.
Loading advisory.
Docling: `enable_local_fetch` is not enforced in HTML browser-rendering mode
When the HTML backend renders pages in a headless browser (HTMLBackendOptions(render_page=True)), the enable_local_fetch option is not enforced.
Published 2026-10-05 21:38 UTC · Modified 2026-10-15 14:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| docling | PyPI | >= 2.82.0, < 2.118.1 versions 2.100.0, 2.101.0, 2.102.0, 2.102.1, 2.102.2, 2.103.0, 2.104.0, 2.105.0, 2.106.0, 2.107.0, 2.108.0, 2.109.0, 2.110.0, 2.111.0, 2.112.0, 2.113.0, 2.114.0, 2.115.0, 2.116.0, 2.117.0 and 20 more | 2.118.1 | pip install --upgrade 'docling>=2.118.1' |
| docling-slim | PyPI | >= 2.92.0, < 2.118.1 versions 2.100.0, 2.101.0, 2.102.0, 2.102.1, 2.102.2, 2.103.0, 2.104.0, 2.105.0, 2.106.0, 2.107.0, 2.108.0, 2.109.0, 2.110.0, 2.111.0, 2.112.0, 2.113.0, 2.114.0, 2.115.0, 2.116.0, 2.117.0 and 10 more | 2.118.1 | pip install --upgrade 'docling-slim>=2.118.1' |
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.
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=False did 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.
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 playwright dependency 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.
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.
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.
Reported by @priyankn.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.005 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.004 | v2026.06.15 |