{"schema":"threatline.record/2","record":{"id":"CVE-2026-47214","aliases":["GHSA-q29v-xc37-wh5m","PYSEC-2026-2146"],"summary":"Docling: Unsafe URI and Path Handling in HTML Backend","details":"### Impact\nThe HTML backend did not perform sufficient validation during resource handling:\n- Accepted `file://` URIs enabling local file system access when `enable_local_fetch=True`\n- Path resolution allowed traversal outside intended directories via `../` sequences and absolute paths\n- Did not block internal network resources under `enable_remote_fetch=True`\n- HTTP redirects were not validated, potentially redirecting to unintended schemes\n- No resource limits for remote image downloads and `data:` URIs\n\n### Patches\nFixed in versions 2.91.0 (initial fixes) and 2.94.0 (additional improvements). The fixes implement:\n- Updated local path treatment: absolute files always blocked, relative paths require `enable_local_fetch=True` (default: False) and containment within configured `base_path` for path traversal protection\n- `file://` scheme stripped & treated as local path (above)\n- IP address validation to prevent SSRF\n- HTTP redirect validation, connection and read timeouts\n- Size limit for both remote images (with streaming download) and base64-decoded data URIs\n\n### Workarounds\nKeep both `enable_local_fetch=False` and `enable_remote_fetch=False` (defaults) when processing untrusted HTML documents.\n\n### References\n- Initial fixes: [v2.91.0](https://github.com/docling-project/docling/releases/tag/v2.91.0)\n- Additional improvements: [v2.94.0](https://github.com/docling-project/docling/releases/tag/v2.94.0)","categories":["Libraries & packages"],"product":"docling","vendor":"docling-project","ecosystem":"pip","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-q29v-xc37-wh5m","source_modified_at":"2026-10-19T19:56:43Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"pip","name":"docling"},"range":"< 2.94.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-47214","source_modified_at":"2026-06-26T18:41:52.977Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"docling","vendor":"docling-project","versions":[{"status":"affected","version":"< 2.94.0"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-q29v-xc37-wh5m","source_modified_at":"2026-10-19T20:00:04.717120532Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"docling","ecosystem":"PyPI","purl":"pkg:pypi/docling"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.94.0"}]}],"versions":["0.1.0","0.1.1","0.1.2","0.2.0","0.3.0","0.3.1","0.4.0","1.0.0","1.0.1","1.0.2","1.1.0","1.1.1","1.1.2","1.10.0","1.11.0","1.12.0","1.12.1","1.12.2","1.13.0","1.13.1","1.14.0","1.15.0","1.16.0","1.16.1","1.17.0","1.18.0","1.19.0","1.19.1","1.2.0","1.2.1","1.20.0","1.3.0","1.4.0","1.5.0","1.6.0","1.6.1","1.6.2","1.6.3","1.7.0","1.7.1","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","1.9.0","2.0.0","2.1.0","2.10.0"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-q29v-xc37-wh5m","source_modified_at":"2026-10-19T19:56:43Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"pip","name":"docling"},"version":"2.94.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-q29v-xc37-wh5m","source_modified_at":"2026-10-19T20:00:04.717120532Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"docling","ecosystem":"PyPI","purl":"pkg:pypi/docling"},"version":"2.94.0"}],"cvss":7.1,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00373,"percentile":0.30124,"score_date":"2026-10-23"},"published_at":"2026-06-26T15:45:04.659Z","modified_at":"2026-10-19T20:00:04.717120532Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-q29v-xc37-wh5m","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-19T19:56:43Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-47214","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-06-26T18:41:52.977Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-q29v-xc37-wh5m","fetched_at":"2026-10-23T18:48:36.087640Z","source_modified_at":"2026-10-19T20:00:04.717120532Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-47214","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/docling-project/docling/security/advisories/GHSA-q29v-xc37-wh5m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/docling-project/docling/releases/tag/v2.91.0","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/docling-project/docling/releases/tag/v2.94.0","tags":["x_refsource_MISC"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47214","source":"GitHub Advisory Database"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/docling/PYSEC-2026-2146.yaml","source":"GitHub Advisory Database"},{"url":"https://github.com/docling-project/docling/pull/3400","source":"GitHub Advisory Database"},{"url":"https://github.com/docling-project/docling/pull/3407","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-q29v-xc37-wh5m","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-06-26T17:50:33.103623Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-19T20:00:04.717120532Z","content_hash":"5e0b4d9f0842cd88484335dec221908c01fe98f3a59fab63c0427f5116e5c103"}}
