Docling: Unsafe Playwright-based HTML Rendering
High severity
GitHub Reviewed
Published
Jun 2, 2026
in
docling-project/docling
•
Updated Jun 3, 2026
Description
Published to the GitHub Advisory Database
Jun 3, 2026
Reviewed
Jun 3, 2026
Last updated
Jun 3, 2026
Impact
In versions
>= 2.82.0, < 2.91.0, if the HTML backend was explicitly configured for rendering (rendering option by default deactivated), then the Playwright-based rendering feature could allow JavaScript execution and unrestricted network access when processing untrusted HTML documents. An attacker could craft malicious HTML that executes arbitrary JavaScript in the rendering context or makes unauthorized network requests to internal services, potentially leading to SSRF attacks, data exfiltration, or remote code execution in the rendering environment.Patches
Fixed in version 2.91.0. The rendering context now explicitly disables JavaScript execution (
java_script_enabled=False) and implements network isolation controls. Whenenable_remote_fetchis disabled, the browser operates in offline mode, preventing all network requests.Workarounds
Refrain from using
render_page=Truewhen processing untrusted HTML documents.References
References