Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted HTML document for conversion
-
ExploitReference remote image that redirects cross-origin
-
ExecutionLoader follows redirect carrying configured headers
-
ImpactAttacker server captures leaked API keys and cookies
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Outbound data filtering
|
| Exploitation Conditions | Exploitation requires a specifically-configured, non-default deployment: HTMLBackendOptions must have both enable_remote_fetch=True and fetch_images=True, AND the operator must have set HTMLBackendOptions.headers to include sensitive values (e.g. an Authorization bearer token/API key or session cookie). The attacker must be able to supply an untrusted HTML document to the converter and control (or influence a redirect to) a remote image URL on a foreign origin; the pre-fix loader then forwards the configured headers across that cross-origin redirect instead of restricting them to the source document's origin. Limiting factors that reduce real-world risk: the default configuration is NOT affected (remote fetching and configured headers are both off by default), so only operators who deliberately enabled remote image fetching with credentials are exposed; impact is confined to the specific headers the operator configured. |
| Impact | This is a genuinely low-priority issue for most operators despite being a real credential-disclosure bug (CWE-201). The input CVSS of 3.7 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N) correctly reflects a narrow, confidentiality-only flaw: AC:H captures the requirement for a non-default configuration plus an attacker-staged cross-origin redirect, and C:L/I:N/A:N limits impact to disclosure of whatever headers the operator configured. No EPSS score was provided in the input, and there is no CISA KEV listing and no public exploit identified at time of analysis - all three exploitation signals are therefore either absent or negative, which is consistent with a low-urgency vulnerability. The one tension worth flagging: the description states the leaked headers can be 'API keys and cookies,' which is a direct, serious credential exposure that arguably justifies C:H rather than C:L - so the real-world consequence of a successful leak (downstream account/API compromise) can be more severe than the 3.7 base score suggests, even though the probability of exploitation is low because the vulnerable behavior requires enable_remote_fetch=True, fetch_images=True, and operator-configured credential headers, none of which are the default. |
| Exploit ScenarioDerived | An operator runs Docling in a RAG/ingestion pipeline with enable_remote_fetch=True, fetch_images=True, and an HTMLBackendOptions.headers value carrying an Authorization/API-key or cookie. An attacker submits a crafted HTML document whose <img> URL points to a host they control (or one that 302-redirects cross-origin to one), and Docling's image_resource_loader follows the redirect while still attaching the configured credentials, handing the attacker the secret. No public exploit was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 05, 2026
Docling's HTML backend forwards operator-configured HTTP headers - bearer tokens, API keys, cookies set via HTMLBackendOptions.headers - to every remote image URL named by an untrusted HTML document, including after a cross-origin redirect, leaking the caller's credentials to whoever authored the document. The flaw lives in docling/backend/utils/image_resource_loader.py in versions 2.95.0 through 2.131.x and is only reachable in a deliberately non-default configuration where both enable_remote_fetch and fetch_images are enabled and sensitive headers have been configured; the default configuration carries no exposure. Upstream scored it CVSS 3.7, while independent assessment rates the confidentiality impact as High given that live credentials are disclosed; no public exploit code has been identified at time of analysis, and the issue is fixed in 2.132.0.
RemediationAI
Vendor-released patch: upgrade to Docling 2.132.0 or later (release tag v2.132.0), which scopes HTMLBackendOptions.headers to the source document's origin by default and exposes headers_allowed_origins for explicitly naming additional trusted origins; the fix is also visible in PR #4420 and commit 5e469137f275ffc443306a30d12a3a45bceb80fb, with the advisory at https://github.com/docling-project/docling/security/advisories/GHSA-p3fw-7699-7926. If an immediate upgrade is not possible, the highest-value compensating control is to remove credentials from HTMLBackendOptions.headers entirely and instead front authenticated image retrieval with an internal proxy that injects the token - the trade-off is added infrastructure and loss of the direct per-request header convenience. Disabling remote image fetching (leave enable_remote_fetch=False, the default, or set fetch_images=False) fully removes the vulnerable path at the cost of losing images referenced from remote hosts. A third option is to route the converter's outbound egress through a proxy that strips Authorization, Cookie, and similar headers on cross-origin hops, which preserves functionality but depends on correct proxy configuration. Operators who keep credentials configured should treat any converted untrusted HTML as hostile input and, if they must run pre-2.132.0 code, isolate the conversion process so its configured secrets are short-lived and scoped to nothing else.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages 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 a document-conversion library that parses HTML, PDF, and other formats for generative-AI pipelines, distributed as the docling and docling-slim packages (CPE cpe:2.3:a:docling-project:docling and cpe:2.3:a:docling-project:docling-slim). Its HTML backend accepts an HTMLBackendOptions object with fetch_images, enable_remote_fetch, and headers settings; when remote fetching is on and headers are configured, the image resource loader in docling/backend/utils/image_resource_loader.py downloads remote <img> sources using Python's requests/urllib3 stack, which follows HTTP redirects by default. The loader passed the configured headers to every image URL the parsed document referenced without binding those headers to the source document's origin, so a malicious document could point an image at an attacker-controlled host, or redirect a legitimate-looking URL, and have the credentials replayed to that foreign origin. This is class CWE-201 (Insertion of Sensitive Information Into Sent Data): sensitive values are inappropriately embedded into outbound requests rather than being scoped to a trusted endpoint. The same code path also backs the headless-Chromium rendering route, where remote subresource requests are fulfilled by the Python loader, so the header-scoping defect applied there as well. The upstream fix introduces an explicit allow-list - headers are sent only to the source page's origin by default, or to each origin listed in the new headers_allowed_origins option - plus address validation, per-redirect re-checking, and a max_remote_image_bytes cap, and it warns when headers are configured but no origin is allowed to receive them.
Know when Docling Slim gets its next vulnerability
- 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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
AV:N and PR:N since an unauthenticated document author triggers it remotely; AC:H for the required non-default config plus staged cross-origin redirect; C:H because leaked API keys/cookies are a direct, serious disclosure; I/A:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.95.0 until 2.132.0, the HTML image resource loader in docling/backend/utils/image_resource_loader.py forwards headers configured through the HTMLBackendOptions.headers setting to every remote image URL named by an untrusted document when enable_remote_fetch=True and fetch_images=True. The loader does not restrict those credentials to the source document's origin, allowing requests that carry custom headers such as API keys and cookies to follow cross-origin redirects and expose the caller's configured credentials to a document author. The default configuration is not affected because remote fetching and configured headers are required. This issue is fixed in 2.132.0.
Blast Radius
ecosystem impact- 2 pypi packages depend on docling (2 direct, 0 indirect)
- 3 pypi packages depend on docling-slim (1 direct, 2 indirect)
Ecosystem-wide dependent count for version 2.95.0 and other introduced versions.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Docling Slim
View allLocal file disclosure in Docling allows crafted HTML to embed readable files from the host filesystem into the rendered
Docling 2.94.0 through 2.131.x allows an attacker-supplied LaTeX/TikZ document to read files accessible to the converter
Import-time code execution in Docling 2.27.0 through 2.131.0 lets any distribution already present in the same Python en
Unbounded rowspan/colspan attribute handling in Docling 2.0.0 through 2.130.x lets a deliberately crafted document force
Server-side request forgery in Docling 2.91.0 through 2.131.x lets an attacker-supplied document reach internal services
Docling 2.83.0 through 2.130.x ignores the enable_remote_services=False policy when OCR is configured with KserveV2OcrOp
Processing a crafted document with Docling (or the docling-slim distribution) versions 2.45.0 through 2.130.x can exhaus
Information disclosure in Docling (and the docling-slim distribution) versions 2.16.0 through 2.130.x lets an attacker e
EUVD-2026-92802
GHSA-p3fw-7699-7926
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB