CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-105750

CVE-2026-105750: Local File Disclosure in Docling via Permissive HTML Rendering Requests Filter

Alon Barad
Alon Barad
Software Engineer

Oct 6, 2026·7 min read·17 visits

Executive Summary (TL;DR)

A validation flaw in Docling's HTML rendering backend allows local file disclosure (LFD) when processing untrusted HTML files using Playwright.

CVE-2026-105750 is a medium-severity local file disclosure vulnerability affecting the Docling and Docling-Slim libraries. When processing HTML documents using the optional Playwright rendering backend, the application fail to validate and restrict request URIs using the file:// scheme. This permits an attacker supplying a crafted HTML file to access, render, and exfiltrate local system files.

Vulnerability Overview

Docling and Docling-Slim are specialized Python libraries used in modern data-engineering pipelines to parse, structure, and convert document formats such as PDFs, Office files, and HTML into structured JSON or Markdown. To support downstream generative AI pipelines and Retrieval-Augmented Generation (RAG) tasks, the library offers a visual page-rendering mode using a headless browser. When configured with HTMLBackendOptions(render_page=True) and with Playwright installed, the backend spawns a browser context to capture precise layout structures, visual elements, and embedded styling.

To restrict the browser context from accessing unauthorized network or filesystem assets, the application implements custom request filtering. The core of this mechanism resides within the HTMLDocumentBackend._get_browser_request_block_reason method, which dynamically inspects each URI request initiated by the browser during parsing. In vulnerable versions starting from 2.82.0 up to but not including 2.118.1, this filter permitted local directory and scheme access without sufficient constraints.

Specifically, the implementation unconditionally approved requests utilizing the file:// scheme, allowing the browser engine to query any absolute path on the host filesystem that was accessible to the running process. When a document is processed from a local filesystem path, this gap allows malicious HTML documents to load, render, and exfiltrate highly sensitive files, such as Unix configurations or application database secrets, directly into the document layout structure.

Root Cause Analysis

The root cause of CVE-2026-105750 lies in a flawed authorization policy in the request interceptor of the HTML document rendering backend. When Playwright is instructed to render an HTML page, it registers a route handler to inspect every network and filesystem sub-request. The HTMLDocumentBackend._get_browser_request_block_reason method is invoked to evaluate if a request should be blocked based on security configurations.

In affected versions, the filter logic parsed the target URL and extracted the lowercase URI scheme. If the parsed scheme matched file, data, about, or blob, the function immediately returned None, which signifies that there is no block reason. This logic failed to account for the risk of local file extraction when rendering an untrusted local HTML document.

Because the browser executed within the server's context, any resource references using the file:// scheme were evaluated from the server's perspective. If an attacker could force the pipeline to process an HTML file via a filesystem Path input, the browser was granted full access to read local file paths via standard HTML embedding tags such as iframe, object, or link.

Crucially, this vulnerability is only exploitable when the file is parsed using a filesystem Path input rather than a memory stream. If a stream-based input is used, the browser executes the rendering process within an opaque origin context, which automatically restricts local file access due to standard browser-level sandbox policies. However, when a Path is used, the browser context inherits file system privileges relative to the document's location.

Code Analysis

To understand the vulnerability and its remediation, we must examine the changes made to docling/backend/html_backend.py in the fix commit 1612b8875b0937447ce3122536fb5360a7102a0a.

Prior to the patch, the block reasoning logic was highly permissive towards the file scheme:

def _get_browser_request_block_reason(self, request_url: str) -> Optional[str]:
    parsed = urlparse(request_url)
    scheme = (parsed.scheme or "").lower()
    # VULNERABLE: Unconditionally permitting file:// scheme requests
    if scheme in {"file", "data", "about", "blob"}:
        return None
 
    if ImageResourceLoader.is_remote_url(request_url):
        # ... remote validation checks ...

The patch resolved this by introducing two helpers: _get_browser_local_base_path and _is_allowed_browser_file_request. Together, they enforce strict confinement policies:

    def _get_browser_local_base_path(self) -> Optional[Path]:
        if isinstance(self.path_or_stream, Path):
            return self.path_or_stream.resolve()
 
        if self.base_path and ImageResourceLoader.is_local_path(self.base_path):
            return Path(self.base_path).resolve()
 
        return None
 
    def _is_allowed_browser_file_request(self, request_url: str) -> bool:
        local_base_path = self._get_browser_local_base_path()
        # Permit loading of the source document itself
        if local_base_path is not None and request_url == local_base_path.as_uri():
            return True
 
        # Restrict loading of sub-resources unless explicitly allowed and within path bounds
        if not self.options.enable_local_fetch or local_base_path is None:
            return False
 
        # Normalize path traversing patterns to prevent directory escape
        requested_path = Path(url2pathname(urlparse(request_url).path)).resolve()
        return requested_path.is_relative_to(local_base_path.parent)

With these changes, the modified filtering logic checks file requests against the allowed directory boundaries. It restricts file requests to the parent directory of the source HTML document being parsed. This prevents arbitrary directory traversal attacks using parent sequences or symbolic links.

Exploitation Methodology

Exploiting this vulnerability requires three prerequisites: the target system must have the Playwright dependency installed, the parsing pipeline must configure HTMLBackendOptions(render_page=True), and the application must receive and parse an HTML file path rather than a memory stream.

An attacker can construct a payload HTML document containing tags that reference target host files. For instance, embedding an <iframe> targeting file:///etc/passwd or /etc/resolv.conf forces the headless browser to retrieve these files during the document layout phase.

When the Docling pipeline processes this document, Playwright executes the parsing request, retrieves the targeted file, and renders its contents inside the output document layout structure. Because Docling extracts text content and layout structures from the rendered view, the contents of the target file are incorporated into the final processed output object.

<!DOCTYPE html>
<html>
<head>
    <title>Exploit Payload</title>
</head>
<body>
    <!-- Embed sensitive configuration file -->
    <iframe src="file:///etc/passwd" width="100%" height="600px"></iframe>
</body>
</html>

If the application returns the parsed output (such as converted Markdown or text layouts) to the user, the attacker can view the exact contents of the host file. This can lead to information disclosure of service credentials, environment variables, or critical system structures.

Impact Assessment

The impact of CVE-2026-105750 is classified as high confidentiality loss with a CVSS base score of 5.9. In typical server environments where Docling processes user-supplied documents, such as automated RAG pipelines, chatbots, or document analysis services, this flaw can expose sensitive local configurations.

If an application runs with elevated privileges, an attacker can extract system configuration files, cloud instance credentials (such as local metadata server keys), internal network details, and SSH keys. This data can facilitate lateral movement within the network or cloud environment.

Furthermore, because this flaw operates at the document layout engine layer, traditional input validation controls that only inspect raw text strings may fail to detect the visual file injection. The vulnerability does not affect system integrity or availability, as the execution bounds are restricted to read operations.

Remediation & Defense

To address this vulnerability, administrators and developers must upgrade the docling and docling-slim packages to version 2.118.1 or later. This version enforces path-confinement policies and disables local file loading by default.

pip install --upgrade docling docling-slim

If upgrading is not immediately possible, implement the following workarounds to reduce risk:

  1. Ensure that the enable_local_fetch option within HTMLBackendOptions is configured to False. This is the default setting and prevents the browser from making local filesystem requests during rendering.

  2. Avoid using the HTML rendering page option (render_page=True) when processing untrusted HTML files. Using non-rendering parser backends avoids initializing Playwright contexts, neutralizing the attack vector.

  3. Configure the parsing pipeline to receive inputs as memory streams (e.g., BytesIO) rather than local file system paths. Processing inputs as streams forces Playwright to operate within an opaque origin context, which prevents the loading of local file resources.

Official Patches

docling-projectCoordinated Vulnerability Disclosure (CVD) advisory and mitigation
docling-projectOfficial pull request containing security changes

Fix Analysis (1)

Technical Appendix

CVSS Score
5.9/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected Systems

Docling document processing environments running with HTML rendering enabled

Affected Versions Detail

Product
Affected Versions
Fixed Version
docling
docling-project
>= 2.82.0, < 2.118.12.118.1
docling-slim
docling-project
>= 2.92.0, < 2.118.12.118.1
AttributeDetail
CWE IDCWE-863 / CWE-552
Attack VectorNetwork
CVSS Base Score5.9 (Medium)
Exploit StatusProof of Concept (PoC) available
CISA KEV StatusNo
Vulnerable Versions>= 2.82.0, < 2.118.1
Primary ImpactConfidentiality (Arbitrary Local File Disclosure)

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-863
Incorrect Authorization

The software does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.

Vulnerability Timeline

Patches developed and committed to the main branch
2026-08-06
Official patched version v2.118.1 released
2026-10-05
GitHub Security Advisory published
2026-10-05
CVE-2026-105750 assigned and published
2026-10-05

References & Sources

  • [1]GitHub Security Advisory GHSA-q43m-vhcp-mhvm
  • [2]Fix Commit 1612b88
  • [3]Docling v2.118.1 Release

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•17 minutes ago•CVE-2026-62297
7.5

CVE-2026-62297: Uncontrolled Memory Allocation and Denial of Service in ag-psd

An uncontrolled memory allocation vulnerability exists in ag-psd versions prior to 31.0.0. When parsing Adobe Photoshop Document (PSD) files, the readPsd() function reads image dimensions and color depth directly from the file header and allocates off-heap typed arrays without validating whether the requested memory size is proportional to the input stream or bounded by operational thresholds. An unauthenticated attacker can supply a crafted 52-byte PSD payload that triggers an immediate 3.35 GB memory allocation, resulting in process termination via the operating system Out-Of-Memory (OOM) killer.

Amit Schendel
Amit Schendel
0 views•10 min read
•about 1 hour ago•CVE-2026-126297
7.5

CVE-2026-126297: Algorithmic Complexity Denial of Service in NLTK ConllCorpusReader

CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).

Amit Schendel
Amit Schendel
2 views•12 min read
•about 2 hours ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
5 views•12 min read
•about 3 hours ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
4 views•10 min read
•about 4 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 5 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read