Docling
Docling: `enable_local_fetch` is not enforced in HTML browser-rendering mode
Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.82.0 until 2.118.1, HTMLBackendOptions(render_page=True) permits file URLs because HTMLDocumentBackend._get_browser_request_block_reason does not enforce the enable_local_fetch setting or confine local requests to the source document directory. Crafted path-backed HTML can embed a readable local text file in a browser-rendered page image when Playwright is installed. Only filesystem Path inputs are affected because stream inputs use an opaque origin, and the default configuration, command-line interface, docling-serve, and non-rendering backends are not affected. This issue is fixed in 2.118.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.82.0, < 2.118.1
Fixed in 2.118.1
- >= 2.92.0, < 2.118.1
Fixed in 2.118.1
Mitigation
Upgrade docling to 2.118.1 or later.
Upgrade docling-slim to 2.118.1 or later.
References
- Vendor advisory github.com/docling-project/docling/security/ad…
- Patch github.com/docling-project/docling/pull/3948
- Patch github.com/docling-project/docling/commit/1612…
1 more
- Release notes github.com/docling-project/docling/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.