Vulnerabilities in pkg:pypi/docling

PACKAGE
Advisory Identifier: GHSA-q29v-xc37-wh5m
Advisory Summary

CVE-2026-47214 is a HIGH (CVSS 7.1) unsafe uri and path handling vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Docling libraries in the PyPI ecosystem. The issue involves unsafe uri and path handling in html backend. Remediation is available by upgrading affected packages to version 2.94.0.

18 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/docling

18 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/docling. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q29v-xc37-wh5m CVE-2026-47214 HIGH Docling: Unsafe URI and Path Handling in HTML Backend
GHSA-p3fw-7699-7926 CVE-2026-105742 LOW Docling: Configured HTTP headers sent to every remote image host named by a document
GHSA-pc36-qwjq-x68c CVE-2026-105743 MODERATE Docling has SSRF guard bypass in remote resource fetching (DNS rebinding / multi-record resolution; no IP validation in HTML render mode)
GHSA-x3q2-h9hx-4r4j CVE-2026-105744 HIGH Docling has arbitrary file read/write (and command execution when shell-escape is enabled) when rendering untrusted TikZ with the opt-in Tectonic engine
GHSA-p944-4xh2-x776 CVE-2026-105748 MODERATE Docling: Crafted DoclingDocument JSON embeds local image files into converted output
GHSA-cgc7-9qp3-86m3 CVE-2026-105749 MODERATE Docling: Unbounded table rowspan/colspan in HTML, JATS, ODS and BoxNote backends causes CPU/memory exhaustion
GHSA-9jxx-vjrv-h2rq CVE-2026-105745 MODERATE Docling imports plugin entry points before the allow_external_plugins check
GHSA-3cr3-8m4c-fpxw CVE-2026-105747 MODERATE Docling: METS-GBS archive member limit enforced after full member enumeration (memory exhaustion during format detection)
GHSA-f4ch-vxwc-3p2m - MODERATE Duplicate Advisory: Docling: METS-GBS archive member limit enforced after full member enumeration (memory exhaustion during format detection)
GHSA-q43m-vhcp-mhvm CVE-2026-105750 MODERATE Docling: `enable_local_fetch` is not enforced in HTML browser-rendering mode
GHSA-4xhp-xg4w-8ppm CVE-2026-105751 MODERATE Docling: Arbitrary local file read via draw:image xlink:href in the OpenDocument backend
GHSA-cjqg-rq2h-2fvj CVE-2026-44017 HIGH Docling: Unsafe Zip Extraction in EasyOCR Model Download
GHSA-m88r-rg27-5xfg CVE-2026-44020 HIGH Docling: Unsafe XML Entity Expansion in USPTO Patent Backend
GHSA-r3xg-rg9j-67fv CVE-2026-44018 MODERATE Docling: Unsafe Archive Extraction and XML Parsing in METS-GBS Backend
GHSA-2j5p-7p5m-cvqr CVE-2026-44022 MODERATE Docling: Potential Path Traversal via LaTeX \includegraphics and \input Commands
GHSA-pj2v-ggqh-cmq2 CVE-2026-44016 HIGH Docling: Unsafe Playwright-based HTML Rendering
GHSA-9f4q-q82q-4359 CVE-2026-31248 HIGH Docling's METS GBS backend is vulnerable to XML Entity Expansion (XXE) attacks
GHSA-cr42-rg2m-mq4q CVE-2026-31247 HIGH Docling's JATS XML backend is vulnerable to XML Entity Expansion (XXE) attacks

CVE-2026-47214 at a Glance

CVE Identifier CVE-2026-47214
GHSA Identifier GHSA-q29v-xc37-wh5m
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Docling
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-47214

To remediate this vulnerability, upgrade all affected Docling dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

docling fixed: 2.94.0
pip install docling>=2.94.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show docling

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-47214, inspect your installed packages using pip:

pip show docling

Analyze the terminal output to locate any version of Docling in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.94.0), your application is affected.

Note: The pip show docling command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Docling, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The HTML backend did not perform sufficient validation during resource handling: - Accepted `file://` URIs enabling local file system access when `enable_local_fetch=True` - Path resolution allowed traversal outside intended directories via `../` sequences and absolute paths - Did not block internal network resources under `enable_remote_fetch=True` - HTTP redirects were not validated, potentially redirecting to unintended schemes - No resource limits for remote image downloads and `data:` URIs ### Patches Fixed in versions 2.91.0 (initial fixes) and 2.94.0 (additional improvements). The fixes implement: - 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 - `file://` scheme stripped & treated as local path (above) - IP address validation to prevent SSRF - HTTP redirect validation, connection and read timeouts - Size limit for both remote images (with streaming download) and base64-decoded data URIs ### Workarounds Keep both `enable_local_fetch=False` and `enable_remote_fetch=False` (defaults) when processing untrusted HTML documents. ### References - Initial fixes: [v2.91.0](https://github.com/docling-project/docling/releases/tag/v2.91.0) - Additional improvements: [v2.94.0](https://github.com/docling-project/docling/releases/tag/v2.94.0)

CVE-2026-47214 Affected Docling Versions

1 component(s)
Fixed Versions:
2.94.0
Product / Package Ecosystem Affected Versions Fixed Version
docling
PyPI
< 2.94.0
2.94.0

References

Frequently Asked Questions

What is CVE-2026-47214?
CVE-2026-47214 is a security vulnerability in Docling involving Unsafe URI and Path Handling in HTML Backend under CWE-400: Uncontrolled Resource Consumption.
Which Docling versions are affected?
Affected versions include releases prior to 2.94.0 across affected packages: docling.
What version fixes CVE-2026-47214?
Upgrading to 2.94.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is docling affected?
Yes, docling is affected in releases prior to 2.94.0. Upgrade your dependency to 2.94.0 or later.
What is the CVSS score of CVE-2026-47214?
CVE-2026-47214 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L.
What CWE is associated with CVE-2026-47214?
CVE-2026-47214 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for CVE-2026-47214?
Run the dependency tree command: 'pip show docling'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q29v-xc37-wh5m",
  "modified" : "2026-10-19T19:56:41Z",
  "published" : "2026-06-03T21:15:02Z",
  "aliases" : [ "CVE-2026-47214" ],
  "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)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "docling"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.94.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/security/advisories/GHSA-q29v-xc37-wh5m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-47214"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/pull/3400"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/pull/3407"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/docling-project/docling"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/releases/tag/v2.91.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling/releases/tag/v2.94.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/docling/PYSEC-2026-2146.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-73" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-03T21:15:02Z",
    "nvd_published_at" : "2026-06-26T16:16:31Z"
  }
}