Skip to main content

Docling CVE-2026-47214

| EUVDEUVD-2026-39791 HIGH
External Control of File Name or Path (CWE-73)
2026-06-03 https://github.com/docling-project/docling GHSA-q29v-xc37-wh5m
7.1
CVSS 3.1 · Vendor: https://github.com/docling-project/docling
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft HTML with file:// or internal URLs
  2. Delivery
    Deliver to docling ingestion endpoint
  3. Exploit
    Backend invokes HTML parser with fetch flag enabled
  4. Execution
    Resolver dereferences unvalidated URI
  5. Persist
    Read local file or internal HTTP response
  6. Impact
    Exfiltrate contents via converted document output

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

The target application must invoke docling's HTML backend on attacker-influenced HTML AND must have explicitly set enable_local_fetch=True (for file://, absolute path, or ../ traversal disclosure) or enable_remote_fetch=True (for SSRF against internal IPs, unsafe HTTP redirect chains, and unbounded image/data: URI downloads); both flags default to False, so stock configurations are not exploitable. User interaction is required in the CVSS sense (UI:R) - a victim or automated pipeline must process the attacker-supplied document - but no authentication or special privilege on the target is needed (PR:N). Exploitation is further limited to docling versions prior to 2.94.0 and to deployments where the converted output (or its side effects, such as image bytes) is observable to the attacker for confidentiality impact to be realized.

Impact

Real-world risk is moderate and conditional rather than urgent. The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L (7.1) reflects network reach, no authentication, but required user interaction (a victim must process attacker-supplied HTML) and limits impact to confidentiality (file/SSRF read) plus low availability (resource exhaustion). SSVC-style reading: exploitation is POC-class at best (no public exploit identified at time of analysis, not in CISA KEV), automatability is plausible since malicious HTML can be mass-distributed, and technical impact is partial (read-only file disclosure and internal probing, not RCE). EPSS data was not provided and cannot be cited. A key caveat: exploitation requires the embedding application to opt into enable_local_fetch=True or enable_remote_fetch=True - both default to False - so default deployments are largely safe; pipelines that explicitly enabled fetching to render images or follow links are the realistic targets. No conflicting signals between CVSS and description were observed.

Exploit ScenarioDerived

An attacker submits a malicious HTML document - for example, uploaded to a SaaS ingestion endpoint or emailed into an automated RAG pipeline - containing tags whose src attributes point to file:///etc/passwd, ../../ relative paths, or http://169.254.169.254/ cloud metadata URLs. When the backend service calls docling with enable_local_fetch or enable_remote_fetch enabled, docling dereferences these URIs and embeds the retrieved bytes into the converted output, leaking local file contents and internal HTTP responses back to the attacker via the document the pipeline returns or stores. No public exploit code is identified at time of analysis, but the technique is straightforward to script.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 03, 2026

Path traversal and SSRF in Docling's HTML backend allow attackers to coerce the document processor into reading local files, contacting internal network resources, and consuming unbounded resources when a crafted HTML document is processed with non-default fetch flags enabled. The flaw affects the docling Python package prior to 2.94.0 and stems from missing validation of file:// URIs, relative/absolute paths, HTTP redirects, and download sizes; no public exploit identified at time of analysis and the issue is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade docling to 2.94.0 or later (pip install --upgrade 'docling>=2.94.0'); 2.91.0 contains partial fixes but 2.94.0 is required for full coverage, per the release notes at https://github.com/docling-project/docling/releases/tag/v2.91.0 and https://github.com/docling-project/docling/releases/tag/v2.94.0. If upgrading immediately is not feasible, the vendor-recommended workaround is to keep both enable_local_fetch=False and enable_remote_fetch=False (the defaults) when processing untrusted HTML, which fully neutralizes the file:// and SSRF paths at the cost of losing the ability to inline local images or follow remote image references during conversion. For pipelines that must render images, run docling inside a network-egress-restricted sandbox that denies RFC1918 destinations and local filesystem access outside a dedicated working directory, and constrain base_path to a non-sensitive scratch directory; this preserves functionality but trades operational complexity for safety. Full advisory: https://github.com/docling-project/docling/security/advisories/GHSA-q29v-xc37-wh5m.

Affected VersionsENISA

docling < 2.94.0

Affected Packages

pypi docling fix: 2.94.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Docling is an IBM-originated open-source Python library (pkg:pip/docling) used to parse and convert documents (HTML, DOCX, PPTX, PDF, etc.) into structured representations, frequently embedded in document-ingestion and RAG pipelines. The vulnerable component is the HTML backend's resource resolver, which fetches images and other linked assets referenced from an input HTML document. The root cause maps to CWE-73 (External Control of File Name or Path): user-controlled URIs in HTML were passed to file and network handlers without scheme allow-listing, IP filtering, redirect validation, or size caps, simultaneously enabling local file disclosure via file:// and ../ traversal and server-side request forgery against internal IPs when enable_remote_fetch was active. The 2.91.0 and 2.94.0 fixes add absolute-path blocking, base_path containment, file:// stripping, IP address validation, redirect/timeout enforcement, and streaming size limits for remote images and data: URIs.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/docling-project/docling) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L
Red Hat 7.1 HIGH

Primary rating from Vendor (https://github.com/docling-project/docling).

CVSS VectorVendor: https://github.com/docling-project/docling

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
Low

DescriptionCVE.org

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

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 pypi packages depend on docling (2 direct, 0 indirect)

Ecosystem-wide dependent count for version 2.94.0.

Executive ViewAI

Why It Matters

Docling document processor versions prior to 2.94.0 contain path traversal and SSRF vulnerabilities that allow attackers to read local files and probe internal networks through crafted HTML documents when non-default fetch features are enabled. Organizations using affected versions risk exposure of sensitive configuration, credentials, or proprietary data, and potential reconnaissance by attackers preparing lateral movement.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Verify non-default fetch flags are disabled unless operationally critical; (2) Implement network segmentation and egress filtering to block SSRF to internal systems; (3) Process only HTML documents from trusted sources; (4) Apply least privilege file system permissions to the document processing service account; (5) Monitor document processor logs and network activity for suspicious file access or internal resource requests.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy