Mittel

Docling: `enable_local_fetch` is not enforced in HTML browser-rendering mode

  • Veröffentlicht: 05.10.2026
  • Aktualisiert: 15.10.2026 18:17

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

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

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.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) docling >= 2.82.0, < 2.118.1 2.118.1
Python (PyPI) docling-slim >= 2.92.0, < 2.118.1 2.118.1

Verweise

CVSS-Wert 5.9/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Schwäche (CWE)
CWE-552, CWE-863
Plattform
Python (PyPI)
Paket
docling, docling-slim
Veröffentlicht
05.10.2026
Aktualisiert
15.10.2026 18:17

Quellen und Lizenzen

OSV / GitHub Advisory Database - PYSEC-2026-4196 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-q43m-vhcp-mhvm - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-4215 - PyPA Advisory Database; CC BY 4.0

Schwachstellenhistorie: docling

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (18) im Archiv
Einträge insgesamt
18
Erste → letzte
05.2026 10.2026
Ohne Fix
2
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Hoch 7
  • Mittel 10
  • Niedrig 1

Veröffentlichungen pro Jahr

  1. 2026: 18
Schweregrad:
  1. Docling: `enable_local_fetch` is not enforced in HTML browser-rendering mode dieser Eintrag
    Mittel · 5.9 CVE-2026-105750 >= 2.82.0, < 2.118.1 2.118.1
  2. Hoch · 7.1 CVE-2026-47214 < 2.94.0 2.94.0
  3. Hoch · 7.5 CVE-2026-44020 >= 2.13.0, < 2.74.0 2.74.0
  4. Hoch · 8.2 CVE-2026-44016 >= 2.82.0, < 2.91.0 2.91.0
  5. Hoch · 7.5 CVE-2026-44017 < 2.91.0 2.91.0
  6. Hoch · 7.5 CVE-2026-31248 <= 2.61.0 keine Korrektur
  7. Hoch · 7.5 CVE-2026-31247 <= 2.61.0 keine Korrektur

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.