{"id":"CVE-2026-105750","aliases":["CVE-2026-105750","GHSA-q43m-vhcp-mhvm","PYSEC-2026-4196","PYSEC-2026-4215"],"related":[],"kind":"vulnerability","state":"published","title":"Docling: `enable_local_fetch` is not enforced in HTML browser-rendering mode","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhen 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`.\n\n### Details\n\nIn 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:\n\n- `enable_local_fetch=False` did not block local file access, and\n- 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.\n\nVersions 2.82.0–2.90.x did no request filtering in render mode at all.\n\nThe 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.\n\nOnly `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.\n\n### Impact\n\nAn 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.\n\nOnly applications that meet **all** of these conditions are affected:\n\n- they set `HTMLBackendOptions(render_page=True)` in Python,\n- they have the optional `playwright` dependency installed, and\n- they pass untrusted HTML as a filesystem `Path`.\n\nThe following are **not** affected: the default configuration (`render_page=False`), the `docling` CLI, `docling-serve`, and the EPUB, Markdown, XBRL and email backends.\n\n### Patches\n\nFixed 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.\n\n### Workarounds\n\nIf you can't upgrade, don't use `render_page=True` on untrusted HTML, or pass the input as a stream instead of a `Path`.\n\n### Credits\n\nReported by @priyankn.","format":"markdown","source":"ghsa"}],"published":"2026-10-05T21:38:28.098Z","modified":"2026-10-15T14:56:09.321Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-552","CWE-863"],"affected":[{"ranges":[{"version":">= 2.82.0, < 2.118.1","status":"affected"}],"vendor":"docling-project","product":"docling","source":"cvelist"},{"ranges":[{"version":">= 2.92.0, < 2.118.1","status":"affected"}],"vendor":"docling-project","product":"docling-slim","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.82.0","status":"affected","fixed":"2.118.1"}],"ecosystem":"PyPI","package":"docling","purl":"pkg:pypi/docling","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.92.0","status":"affected","fixed":"2.118.1"}],"ecosystem":"PyPI","package":"docling-slim","purl":"pkg:pypi/docling-slim","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.82.0","fixed":"2.118.1"}],"vendor":"docling","product":"docling","cpe":"cpe:2.3:a:docling:docling:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.82.0","status":"affected","fixed":"2.118.1"}],"ecosystem":"PyPI","package":"docling","purl":"pkg:pypi/docling","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"2.92.0","status":"affected","fixed":"2.118.1"}],"ecosystem":"PyPI","package":"docling-slim","purl":"pkg:pypi/docling-slim","source":"pysec"}],"references":[{"url":"https://github.com/docling-project/docling/security/advisories/GHSA-q43m-vhcp-mhvm","tags":["fix","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/docling-project/docling/pull/3948","tags":["fix","issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/docling-project/docling/commit/1612b8875b0937447ce3122536fb5360a7102a0a","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/docling-project/docling/releases/tag/v2.118.1","tags":["advisory","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/docling-project/docling","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/docling-slim","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-q43m-vhcp-mhvm","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105750","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-06T18:17:20.609Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-105750","url":"https://www.cve.org/CVERecord?id=CVE-2026-105750","licence":"CVE Terms of Use","modified":"2026-10-06T18:17:27.884Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q43m-vhcp-mhvm","url":"https://github.com/advisories/GHSA-q43m-vhcp-mhvm","licence":"CC-BY-4.0","modified":"2026-10-15T14:56:09.321Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-105750","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105750","licence":"Public domain","modified":"2026-10-07T17:52:51.153Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4196","url":"https://osv.dev/vulnerability/PYSEC-2026-4196","licence":"CC-BY-4.0","modified":"2026-10-15T14:56:09.321Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4215","url":"https://osv.dev/vulnerability/PYSEC-2026-4215","licence":"CC-BY-4.0","modified":"2026-10-15T14:56:09.321Z"}],"updatedAt":"2026-11-25T22:59:42.189Z","epss":{"score":0.00397,"percentile":0.35994,"date":"2026-12-01T12:00:22.000Z"}}