docling-project/docling-mcp
Making docling agentic through MCP
29bf88b340e0docling-mcp3.5.0 in pyproject.tomlio.github.docling-project/docling-mcpPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 11 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- CRITICAL4 production dependencies have known vulnerabilities (worst: critical).
- HIGHTool
search_documentsruns SQL by design: an agent steered by prompt injection can use it that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Connect it with a read-only database user
search_documentscan run any query it is given. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
search_documents, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
filelock4.2.1 or later,pillow13.0.0 or later,soupsieve4.0.0 or later,transformers5.10.0 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 25 tools, 7 prompts. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
get_page_thumbnailget_page_thumbnail, save_docling_documentNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files1 tool · get_page_thumbnail
Tool annotations
25 of 32 tools declare annotations. readOnlyHint 9, destructiveHint 3.
Tools, prompts and resources (32: 25 tools, 7 prompts)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
search_documentstool Searches through previously uploaded and indexed documents using semantic search.read-only (declared)Runs SQL
Searches through previously uploaded and indexed documents using semantic search.
This function retrieves relevant information from documents that have been processed
and added to the vector database. It uses semantic similarity to find content that
best matches the query, rather than simple keyword matching.author_structured_documentprompt Create a new structured Docling document on a given topic.
Create a new structured Docling document on a given topic.
convert_and_rewriteprompt Convert a document and rewrite its content following specific instructions.
Convert a document and rewrite its content following specific instructions.
convert_and_summarizeprompt Convert a document and produce a structured summary.
Convert a document and produce a structured summary.
convert_directory_and_listprompt Convert all files in a directory and list the results.
Convert all files in a directory and list the results.
find_and_replace_in_documentprompt Find text in a cached document and replace it at the correct anchor.
Find text in a cached document and replace it at the correct anchor.
generate_docling_document_from_pdfprompt Convert a local file into a Docling document and return its document key.
Convert a local file into a Docling document and return its document key.
review_and_edit_documentprompt Review the structure of a cached document and interactively edit it.
Review the structure of a cached document and interactively edit it.
add_list_items_to_list_in_docling_documenttool Add list items to an open list in an existing document in the local document cache.
Add list items to an open list in an existing document in the local document cache.
This tool inserts new list items with the specified text and marker into an
open list within a document. It requires that the document exists and that
there is at least one item in the document's stack cache.add_paragraph_to_docling_documenttool Add a paragraph of text to an existing document in the local document cache.
Add a paragraph of text to an existing document in the local document cache.
This tool inserts a new paragraph under the specified section header and level
into a document that has already been processed and stored in the cache.add_section_heading_to_docling_documenttool Add a section heading to an existing document in the local document cache.
Add a section heading to an existing document in the local document cache.
This tool inserts a section heading with the specified heading text and level
into a document that has already been processed and stored in the local cache.
Section levels typically represent heading hierarchy (e.g., 1 for H1, 2 for H2).add_table_in_html_format_to_docling_documenttool Add an HTML-formatted table to an existing document in the local document cache.
Add an HTML-formatted table to an existing document in the local document cache.
This tool parses the provided HTML table string, converts it to a structured table
representation, and adds it to the specified document. It also supports optional
captions and footnotes for the table.add_title_to_docling_documenttool Add or update the title of a document in the local document cache.
Add or update the title of a document in the local document cache.
This tool modifies an existing document that has already been processed
and stored in the local cache. It requires that the document already exists
in the cache before a title can be added.check_document_in_local_cachetool Check whether a Docling document is already converted and present in the local cache.read-only (declared)
Check whether a Docling document is already converted and present in the local cache.
close_list_in_docling_documenttool Closes a list group in an existing document in the local document cache.
Closes a list group in an existing document in the local document cache.
This tool closes a previously opened list structure within a document.
It requires that the document exists and that there is more than one item
in the document's stack cache.convert_directory_files_into_docling_documenttool Convert all files from a local directory path and store them in local cache.
Convert all files from a local directory path and store them in local cache.
This tool takes a local directory path, converts every file in the directory using
the configured converter (remote API or local) and stores the resulting Docling
documents in a local cache. It returns a list of conversion outputs, where each
output consists of a boolean set to False along with a document's unique cache key.
If a document was already in the local cache, the conversion is skipped and the
output boolean is set to True.convert_document_into_docling_documenttool Convert a document from a URL or local path into a Docling document.
Convert a document from a URL or local path into a Docling document.
Use this tool when you have an existing file (PDF, DOCX, HTML, image, etc.)
that you want to load and parse.
This tool takes a document's URL or local file path, converts it using
the configured converter (remote API or local), and stores the resulting
Docling document in a local cache. It returns an output with a boolean
set to False along with the document's unique cache key. If the document
was already in the local cache, the conversion is skipped and the output
boolean is set to True.create_new_docling_documenttool Create a new, empty Docling document ready for incremental authoring.
Create a new, empty Docling document ready for incremental authoring.
Use this tool when you want to build a document from scratch by subsequently
calling add_title_to_docling_document, add_section_heading_to_docling_document,
add_paragraph_to_docling_document, open_list_in_docling_document, and related
tools. To convert an already-existing file (PDF, DOCX, HTML, etc.) instead,
use convert_document_into_docling_document.
The document is stored in the local cache under a unique key and the prompt
text is recorded as a furniture item for reference.delete_document_items_at_anchorstool Delete multiple document items identified by their anchors.destructive (declared)
Delete multiple document items identified by their anchors.
This tool removes specified items from a Docling document that exists in the local
document cache, based on their anchor references. It requires that the document
already exists in the cache before performing the deletion.export_docling_document_to_markdowntool Export a document from the local document cache to markdown format.read-only (declared)
Export a document from the local document cache to markdown format.
This tool converts a Docling document that exists in the local cache into
a markdown formatted string, which can be used for display or further processing.
Set page_no to export a single page instead of the whole document.export_docling_document_to_vector_dbtool Exports a document from the local document cache to a vector database for search capabilities.
Exports a document from the local document cache to a vector database for search capabilities.
This tool converts a Docling document that exists in the local cache into markdown format,
then loads it into a vector database index. This allows the document to be searched using
semantic search techniques.
Raises:
ValueError: If the specified document_key does not exist in the local cache.get_overview_of_document_anchorstool Retrieve a structured overview of a document from the local document cache.read-only (declared)
Retrieve a structured overview of a document from the local document cache.
This tool returns a text representation of the Docling document's structure,
showing the hierarchy and types of elements within the document. Each line in the
output includes the document anchor reference and item label.get_page_thumbnailtool Generate a thumbnail image for the requested page of a document in the local cache.FilesEnv varsoutside textread-only (declared)
Generate a thumbnail image for the requested page of a document in the local cache.
get_text_of_document_item_at_anchortool Retrieve the text content of a specific document item identified by its anchor.read-only (declared)
Retrieve the text content of a specific document item identified by its anchor.
This tool extracts the text from a Docling document item at the specified anchor
location within a document that exists in the local document cache.information_extractiontool Information extraction from a document.read-only (declared)
Information extraction from a document.
This tool searches for the requested keys matching the descriptions in the document.insert_document_to_vectordbtool Insert the document in the vectordb.
Insert the document in the vectordb.
This tool chunks and ingests a Docling document that exists in the local cache into
a vectordb. The vectordb can then be used for knowledge searches.list_cached_documentstool Return the keys of all Docling documents currently held in the local cache.read-only (declared)
Return the keys of all Docling documents currently held in the local cache.
Use this tool to discover which documents are available before calling any
tool that requires a document_key. An empty list means the cache is empty
and a document must first be loaded with convert_document_into_docling_document
or created with create_new_docling_document.open_list_in_docling_documenttool Open a new list group in an existing document in the local document cache.
Open a new list group in an existing document in the local document cache.
This tool begins a list context on the document's internal stack. Once a list
is open, only add_list_items_to_list_in_docling_document may be called to
populate it. Attempting to add a title, section heading or paragraph before
calling close_list_in_docling_document will raise an error. Nested lists are
supported: call open_list_in_docling_document again after adding items to
start an inner list under the last item, then close each list with
close_list_in_docling_document in reverse order.remove_document_from_local_cachetool Remove a document from the local cache and release its memory.destructive (declared)
Remove a document from the local cache and release its memory.
Call this tool when a client is finished with a document and wants to
release the memory it occupies. After a successful call the key is no
longer present in the cache.save_docling_documenttool Save a document from the local document cache to disk in both markdown and JSON formats.Env vars
Save a document from the local document cache to disk in both markdown and JSON formats.
This tool takes a document that exists in the local cache and saves it to the specified
cache directory with filenames based on the document key. Both markdown and JSON versions
of the document are saved. When page_no is set, only that page is saved in markdown,
to a page-specific file, while the JSON file still contains the full document.search_for_text_in_document_anchorstool Search for specific text and keywords within a document's anchors.read-only (declared)
Search for specific text and keywords within a document's anchors.
This tool takes a string of text to search for and returns a string of all
document anchors that contain the exact text. The search is case-insensitive.
If the exact text is not found, the tool will search for individual keywords
within the text, splitting it on non-alphanumeric characters. If keywords
are found, they are listed alongside their number of occurrences in parentheses.update_text_of_document_item_at_anchortool Update the text content of a specific document item identified by its anchor.destructive (declared)
Update the text content of a specific document item identified by its anchor.
This tool modifies the text of an existing document item at the specified anchor
location within a document that exists in the local document cache. It requires
that the document already exists in the cache before a modification can be made.Text the model reads (32)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
check_document_in_local_cache tool
Check whether a Docling document is already converted and present in the local cache.
remove_document_from_local_cache tool
Remove a document from the local cache and release its memory.
Call this tool when a client is finished with a document and wants to
release the memory it occupies. After a successful call the key is no
longer present in the cache.convert_document_into_docling_document tool
Convert a document from a URL or local path into a Docling document.
Use this tool when you have an existing file (PDF, DOCX, HTML, image, etc.)
that you want to load and parse.
This tool takes a document's URL or local file path, converts it using
the configured converter (remote API or local), and stores the resulting
Docling document in a local cache. It returns an output with a boolean
set to False along with the document's unique cache key. If the document
was already in the local cache, the conversion is skipped and the output
boolean is set to True.convert_directory_files_into_docling_document tool
Convert all files from a local directory path and store them in local cache.
This tool takes a local directory path, converts every file in the directory using
the configured converter (remote API or local) and stores the resulting Docling
documents in a local cache. It returns a list of conversion outputs, where each
output consists of a boolean set to False along with a document's unique cache key.
If a document was already in the local cache, the conversion is skipped and the
output boolean is set to True.list_cached_documents tool
Return the keys of all Docling documents currently held in the local cache.
Use this tool to discover which documents are available before calling any
tool that requires a document_key. An empty list means the cache is empty
and a document must first be loaded with convert_document_into_docling_document
or created with create_new_docling_document.create_new_docling_document tool
Create a new, empty Docling document ready for incremental authoring.
Use this tool when you want to build a document from scratch by subsequently
calling add_title_to_docling_document, add_section_heading_to_docling_document,
add_paragraph_to_docling_document, open_list_in_docling_document, and related
tools. To convert an already-existing file (PDF, DOCX, HTML, etc.) instead,
use convert_document_into_docling_document.
The document is stored in the local cache under a unique key and the prompt
text is recorded as a furniture item for reference.export_docling_document_to_markdown tool
Export a document from the local document cache to markdown format.
This tool converts a Docling document that exists in the local cache into
a markdown formatted string, which can be used for display or further processing.
Set page_no to export a single page instead of the whole document.save_docling_document tool
Save a document from the local document cache to disk in both markdown and JSON formats.
This tool takes a document that exists in the local cache and saves it to the specified
cache directory with filenames based on the document key. Both markdown and JSON versions
of the document are saved. When page_no is set, only that page is saved in markdown,
to a page-specific file, while the JSON file still contains the full document.get_page_thumbnail tool
Generate a thumbnail image for the requested page of a document in the local cache.
add_title_to_docling_document tool
Add or update the title of a document in the local document cache.
This tool modifies an existing document that has already been processed
and stored in the local cache. It requires that the document already exists
in the cache before a title can be added.add_section_heading_to_docling_document tool
Add a section heading to an existing document in the local document cache.
This tool inserts a section heading with the specified heading text and level
into a document that has already been processed and stored in the local cache.
Section levels typically represent heading hierarchy (e.g., 1 for H1, 2 for H2).add_paragraph_to_docling_document tool
Add a paragraph of text to an existing document in the local document cache.
This tool inserts a new paragraph under the specified section header and level
into a document that has already been processed and stored in the cache.open_list_in_docling_document tool
Open a new list group in an existing document in the local document cache.
This tool begins a list context on the document's internal stack. Once a list
is open, only add_list_items_to_list_in_docling_document may be called to
populate it. Attempting to add a title, section heading or paragraph before
calling close_list_in_docling_document will raise an error. Nested lists are
supported: call open_list_in_docling_document again after adding items to
start an inner list under the last item, then close each list with
close_list_in_docling_document in reverse order.close_list_in_docling_document tool
Closes a list group in an existing document in the local document cache.
This tool closes a previously opened list structure within a document.
It requires that the document exists and that there is more than one item
in the document's stack cache.add_list_items_to_list_in_docling_document tool
Add list items to an open list in an existing document in the local document cache.
This tool inserts new list items with the specified text and marker into an
open list within a document. It requires that the document exists and that
there is at least one item in the document's stack cache.add_table_in_html_format_to_docling_document tool
Add an HTML-formatted table to an existing document in the local document cache.
This tool parses the provided HTML table string, converts it to a structured table
representation, and adds it to the specified document. It also supports optional
captions and footnotes for the table.export_docling_document_to_vector_db tool
Exports a document from the local document cache to a vector database for search capabilities.
This tool converts a Docling document that exists in the local cache into markdown format,
then loads it into a vector database index. This allows the document to be searched using
semantic search techniques.
Raises:
ValueError: If the specified document_key does not exist in the local cache.search_documents tool
Searches through previously uploaded and indexed documents using semantic search.
This function retrieves relevant information from documents that have been processed
and added to the vector database. It uses semantic similarity to find content that
best matches the query, rather than simple keyword matching.insert_document_to_vectordb tool
Insert the document in the vectordb.
This tool chunks and ingests a Docling document that exists in the local cache into
a vectordb. The vectordb can then be used for knowledge searches.information_extraction tool
Information extraction from a document.
This tool searches for the requested keys matching the descriptions in the document.get_overview_of_document_anchors tool
Retrieve a structured overview of a document from the local document cache.
This tool returns a text representation of the Docling document's structure,
showing the hierarchy and types of elements within the document. Each line in the
output includes the document anchor reference and item label.search_for_text_in_document_anchors tool
Search for specific text and keywords within a document's anchors.
This tool takes a string of text to search for and returns a string of all
document anchors that contain the exact text. The search is case-insensitive.
If the exact text is not found, the tool will search for individual keywords
within the text, splitting it on non-alphanumeric characters. If keywords
are found, they are listed alongside their number of occurrences in parentheses.get_text_of_document_item_at_anchor tool
Retrieve the text content of a specific document item identified by its anchor.
This tool extracts the text from a Docling document item at the specified anchor
location within a document that exists in the local document cache.update_text_of_document_item_at_anchor tool
Update the text content of a specific document item identified by its anchor.
This tool modifies the text of an existing document item at the specified anchor
location within a document that exists in the local document cache. It requires
that the document already exists in the cache before a modification can be made.delete_document_items_at_anchors tool
Delete multiple document items identified by their anchors.
This tool removes specified items from a Docling document that exists in the local
document cache, based on their anchor references. It requires that the document
already exists in the cache before performing the deletion.generate_docling_document_from_pdf prompt
Convert a local file into a Docling document and return its document key.
convert_and_summarize prompt
Convert a document and produce a structured summary.
convert_directory_and_list prompt
Convert all files in a directory and list the results.
author_structured_document prompt
Create a new structured Docling document on a given topic.
convert_and_rewrite prompt
Convert a document and rewrite its content following specific instructions.
review_and_edit_document prompt
Review the structure of a cached document and interactively edit it.
find_and_replace_in_document prompt
Find text in a cached document and replace it at the correct anchor.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQL HIGH1 finding in search_documents
- Tools that start processesNot seen in the traced code of 32 capabilities; 32 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 32 capabilities touch files; 31 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 32 capabilities; 32 more call code the scanner could not follow, where it may happen
Where the code is: 32 handlers in 9 files at commit 29bf88b340e0
docling_mcp/prompts/conversion.pygenerate_docling_document_from_pdf, convert_and_summarize, convert_directory_and_listdocling_mcp/prompts/generation.pyauthor_structured_document, convert_and_rewritedocling_mcp/prompts/manipulation.pyreview_and_edit_document, find_and_replace_in_documentdocling_mcp/tools/conversion.pycheck_document_in_local_cache, remove_document_from_local_cache, convert_document_into_docling_document, convert_directory_files_into_docling_document, list_cached_documentsdocling_mcp/tools/generation.pycreate_new_docling_document, export_docling_document_to_markdown, save_docling_document, get_page_thumbnail, add_title_to_docling_document, add_section_heading_to_docling_document, add_paragraph_to_docling_document, open_list_in_docling_document, close_list_in_docling_document, add_list_items_to_list_in_docling_document, add_table_in_html_format_to_docling_documentdocling_mcp/tools/llama_index/milvus_rag.pyexport_docling_document_to_vector_db, search_documentsdocling_mcp/tools/llama_stack/rag.pyinsert_document_to_vectordbdocling_mcp/tools/llama_stack/structured_output.pyinformation_extractiondocling_mcp/tools/manipulation.pyget_overview_of_document_anchors, search_for_text_in_document_anchors, get_text_of_document_item_at_anchor, update_text_of_document_item_at_anchor, delete_document_items_at_anchors
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies CRITICAL4 production packages with known advisories
- Known vulnerabilities in other dependencies2 packages with advisories used only for development, tests or examples; an install of the server leaves them out
- MCP SDK versionNo MCP SDK declared in a manifest
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 32 capabilities; 32 more call code the scanner could not follow, where it may happen
- Environment variables2 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (4 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
pillowPyPI 12.3.0 CRITICAL 62 advisories 13.0.0
- CRITICALGHSA-332p-7hrc-92wf BIT-pillow-2026-112393 CVE-2026-112393Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
- CRITICALGHSA-v9pv-5gc8-w2m6 BIT-pillow-2026-96639 CVE-2026-96639 PYSEC-2026-4339Pillow multi-frame loaders can reuse stale native image storage after mode transitions
- CRITICALGHSA-w889-685w-c8fh BIT-pillow-2026-112900 CVE-2026-112900Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
- CRITICALGHSA-8g5g-8vmr-9782 BIT-pillow-2026-112403 CVE-2026-112403 PYSEC-2026-4332Pillow: Heap buffer overflow in ImagingJpegDecode
- CRITICALGHSA-5x8w-8jj5-q52h BIT-pillow-2026-112398 CVE-2026-112398 PYSEC-2026-4330Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
- HIGHGHSA-27h8-gf7j-v5hc BIT-pillow-2026-112392 CVE-2026-112392 PYSEC-2026-4326Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
- HIGHGHSA-c6hw-5grf-ff96 BIT-pillow-2026-112404 CVE-2026-112404Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
- HIGHGHSA-xcvg-w56q-r89m CVE-2026-128067Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
- HIGHGHSA-gg2r-wvfm-q9rx BIT-pillow-2026-112892 CVE-2026-112892Pillow: MSP RLE decoder expands a tiny file into unbounded memory
- HIGHGHSA-xvh5-g6gv-559v BIT-pillow-2026-112902 CVE-2026-112902 PYSEC-2026-4363 Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
- HIGHGHSA-58r4-6rv3-gfh8 BIT-pillow-2026-112397 CVE-2026-112397 PYSEC-2026-4329Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
- HIGHGHSA-f2g6-542v-9j58 BIT-pillow-2026-112406 CVE-2026-112406Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
- HIGHGHSA-65qm-jvmh-6pqg BIT-pillow-2026-112400 CVE-2026-112400Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
- HIGHGHSA-3j72-p6qg-6xp7 BIT-pillow-2026-96642 CVE-2026-96642 PYSEC-2026-4341Pillow: TarIO negative size field causes infinite CPU-spin loop
- HIGHGHSA-78g4-xqwv-q3g8Pillow: Bundled libopenjp2 2.5.4 in all wheels since 11.1.0 carries OSV-2025-219 heap-buffer-overflow write reachable from Image.open().load()
- HIGHGHSA-pchr-8j38-3x4p BIT-pillow-2026-112896 CVE-2026-112896 PYSEC-2026-4334Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
- HIGHGHSA-g7cr-3p24-7wf7 BIT-pillow-2026-96778 CVE-2026-96778Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
- HIGHGHSA-g842-9rc4-69pw BIT-pillow-2026-96637 CVE-2026-96637 PYSEC-2026-4338Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
- HIGHGHSA-jg86-v3jv-hrpm BIT-pillow-2026-112894 CVE-2026-112894Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
- HIGHGHSA-j4m9-6w36-pw47 BIT-pillow-2026-112893 CVE-2026-112893Pillow: Invalid free in FreeType glyph rendering when a stroker is active
- HIGHGHSA-q45j-58j2-45rg BIT-pillow-2026-112897 CVE-2026-112897Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
- HIGHGHSA-p4wg-p73j-c528 BIT-pillow-2026-112895 CVE-2026-112895Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
- HIGHGHSA-mrfp-p49p-3hf2 BIT-pillow-2026-96640 CVE-2026-96640Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
- HIGHGHSA-9v9v-9qvf-h2hj BIT-pillow-2026-96644 CVE-2026-96644 PYSEC-2026-4343Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
- HIGHGHSA-5xm2-6676-qcp9 BIT-pillow-2026-112399 CVE-2026-112399Pillow: APNG background disposal allocates full canvas before decompression bomb check
- HIGHGHSA-g4qv-2jxx-769h BIT-pillow-2026-96643 CVE-2026-96643 PYSEC-2026-4342Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
- HIGHGHSA-22hg-r758-rrw9 BIT-pillow-2026-112390 CVE-2026-112390Pillow: Infinite loop in MIC n_frames when the embedded TIFF
- HIGHGHSA-7mwm-ghpf-9vrm BIT-pillow-2026-112402 CVE-2026-112402 PYSEC-2026-4331Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
- HIGHGHSA-cp9v-662q-vvx9 BIT-pillow-2026-112405 CVE-2026-112405 PYSEC-2026-4333Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0
- MEDIUMPYSEC-2026-4340 BIT-pillow-2026-96641 CVE-2026-96641 GHSA-4rm8-3hmm-39fgPillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-24rc-8hj2-v98c BIT-pillow-2026-96638 CVE-2026-96638Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
- MEDIUMPYSEC-2026-4334 BIT-pillow-2026-112896 CVE-2026-112896 GHSA-pchr-8j38-3x4pPillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-4rm8-3hmm-39fg BIT-pillow-2026-96641 CVE-2026-96641 PYSEC-2026-4340Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
- MEDIUMPYSEC-2026-4341 BIT-pillow-2026-96642 CVE-2026-96642 GHSA-3j72-p6qg-6xp7Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-vx6w-vv9f-6gvg BIT-pillow-2026-112899 CVE-2026-112899Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
- MEDIUMPYSEC-2026-4329 BIT-pillow-2026-112397 CVE-2026-112397 GHSA-58r4-6rv3-gfh8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4327 BIT-pillow-2026-112394 CVE-2026-112394 GHSA-4558-3h8r-v8xpPillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A caller can supply a buffer and image dimensions whose accepted size is smaller than the unpacker's actual footprint. This can disclose up to three adjacent heap bytes in output pixels or crash the process. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-fc9g-5qg7-mf45 BIT-pillow-2026-112891 CVE-2026-112891Pillow: Quadratic GIF comment copying during save
- MEDIUMPYSEC-2026-4339 BIT-pillow-2026-96639 CVE-2026-96639 GHSA-v9pv-5gc8-w2m6Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to wider RGB or CMYK data. ImageFile.load_prepare() reuses the stale native storage because _im is non-null without verifying that its mode and size still match. Crafted PSD, MPO, DCX, or MIC frame transitions can then write wider pixels into the narrow allocation, causing native out-of-bounds writes and crashes. The MPO path can also cause a native over-read and, in demonstrated runtime-specific profiles, command execution. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-74r2-7ff9-mjj2 BIT-pillow-2026-112401 CVE-2026-112401Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
- MEDIUMPYSEC-2026-4328 BIT-pillow-2026-112396 CVE-2026-112396 GHSA-4rr5-89j8-mwwmPillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-654x-cwwv-5j9c BIT-pillow-2026-114501 CVE-2026-114501 PYSEC-2026-4336Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1
- MEDIUMPYSEC-2026-4336 BIT-pillow-2026-114501 CVE-2026-114501 GHSA-654x-cwwv-5j9cPillow is a Python imaging library. From 11.2.1 until 13.0.0, Arrow export assumes that an image's rows are tightly contiguous and exports from im->blocks[0].ptr even when PILLOW_ALIGNMENT makes aligned_linesize include row padding or an aligned offset before the first row. The resulting Arrow buffer can include uninitialized padding, bytes preceding the first row, or stale heap contents from previously freed images. Applications that configure alignment and export images to Arrow can therefore disclose one user's pixels or other process memory to another user. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-xgh8-jp6q-p5x8 BIT-pillow-2026-112901 CVE-2026-112901 PYSEC-2026-4335Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
- MEDIUMPYSEC-2026-4342 BIT-pillow-2026-96643 CVE-2026-96643 GHSA-g4qv-2jxx-769hPillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated headers causes a new shrinking copy on every iteration and quadratic CPU work. The condition is reachable through Image.getexif(), Image._getexif(), and ImageOps.exif_transpose(), including common photo-upload rotation workflows. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4363 BIT-pillow-2026-112902 CVE-2026-112902 GHSA-xvh5-g6gv-559vPillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to TIFFSetField() that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability is fixed in version 13.0.0.
- MEDIUMGHSA-wqgw-9xfh-qf2g CVE-2026-128066Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
- MEDIUMGHSA-4558-3h8r-v8xp BIT-pillow-2026-112394 CVE-2026-112394 PYSEC-2026-4327Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
- MEDIUMGHSA-462x-pgg6-55fp BIT-pillow-2026-112395 CVE-2026-112395Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
- MEDIUMGHSA-4rr5-89j8-mwwm BIT-pillow-2026-112396 CVE-2026-112396 PYSEC-2026-4328Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
- MEDIUMPYSEC-2026-4335 BIT-pillow-2026-112901 CVE-2026-112901 GHSA-xgh8-jp6q-p5x8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's XBM header parser is vulnerable to regular-expression denial of service. In XbmImageFile._open, when an application calls Image.open() on a small crafted XBM file, XbmImagePlugin applies a backtracking expression to the attacker-controlled header before image dimensions are accepted, stalling a worker for minutes and denying service. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4332 BIT-pillow-2026-112403 CVE-2026-112403 GHSA-8g5g-8vmr-9782Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count after scaling is requested, and an 8-bit lossless SOF3 JPEG decoded by a build linked to libjpeg-turbo 3.x can ignore the requested downscaling geometry. An attacker can supply such a JPEG to an application that uses draft() or thumbnail() to request downscaling. This can corrupt heap memory, crash the process, or potentially allow code execution. Older libjpeg-turbo 2.x and IJG builds reject the SOF3 input. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4331 BIT-pillow-2026-112402 CVE-2026-112402 GHSA-7mwm-ghpf-9vrmPillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEAREST resampling. The output image allocation must succeed while the additional per-column lookup allocation fails, after which the error path deletes image storage that later cleanup releases again. An attacker who can drive such a large Image.transform() operation under memory pressure may trigger the failure. This can crash the process and may corrupt memory. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4338 BIT-pillow-2026-96637 CVE-2026-96637 GHSA-g842-9rc4-69pwPillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4343 BIT-pillow-2026-96644 CVE-2026-96644 GHSA-9v9v-9qvf-h2hjPillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies pixel data using the original full dimensions. A crafted wide, short metafile can pass the pixel-count decompression-bomb check and make the Windows-only renderer read beyond the heap buffer, potentially disclosing memory or crashing the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4330 BIT-pillow-2026-112398 CVE-2026-112398 GHSA-5x8w-8jj5-q52hPillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4337 BIT-pillow-2026-96636 CVE-2026-96636 GHSA-p8hx-v2p6-rp84Pillow is a Python imaging library. Prior to 13.0.0, MpoImageFile.seek() and DcxImageFile.seek() reparse later MPO or DCX frames and replace self._size without rerunning Image._decompression_bomb_check(). A crafted multi-frame image can use a tiny first frame to pass Image.open() and then declare an over-limit later frame. Normal frame iteration through seek(), load(), or ImageSequence.Iterator can decode that frame and commit hundreds of megabytes or more, causing memory-exhaustion denial of service. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-p8hx-v2p6-rp84 BIT-pillow-2026-96636 CVE-2026-96636 PYSEC-2026-4337Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
- MEDIUMPYSEC-2026-4326 BIT-pillow-2026-112392 CVE-2026-112392 GHSA-27h8-gf7j-v5hcPillow is a Python imaging library. Prior to 13.0.0, Pillow's rank-based filters can dereference invalid image storage for a zero-size image. ImagingExpand() allocates a non-empty output and then faults while replicating edges by reading the first pixel from empty input storage; ImagingRankFilter is never reached. An attacker can supply or cause creation of a zero-size image to an application that applies a rank, median, minimum, or maximum filter. This causes a native process crash. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4333 BIT-pillow-2026-112405 CVE-2026-112405 GHSA-cp9v-662q-vvx9Pillow is a Python imaging library. From 12.0.0 until 13.0.0, Pillow's Image.merge() can dereference a null image8 plane. Validation skips the first input band, allowing a 32-bit integer or floating-point image backed by image32 storage to be merged as a narrower multiband image. A crafted IPTC file can reach this path when an application opens and loads it, or a caller can invoke Image.merge() directly with such a first band. This causes a native process crash. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-rfgq-q3w2-pmv2 BIT-pillow-2026-112898 CVE-2026-112898Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
- MEDIUMGHSA-254f-3936-288h BIT-pillow-2026-112391 CVE-2026-112391Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
filelockPyPI 3.32.7 HIGH 13 advisories 4.0.94.2.1
- HIGHGHSA-v4x8-3wr5-3wq8 CVE-2026-112940filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files
- MEDIUMGHSA-cwqr-hh33-gh44 CVE-2026-112915filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeout
- MEDIUMGHSA-fq56-3cx3-fjxp CVE-2026-112935filelock: SoftFileLock stale-lock break removes a live lock file on a reused inode number and admits two holders
- MEDIUMGHSA-69hj-f68j-2879 CVE-2026-112909filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path
- MEDIUMGHSA-9c4x-gm8v-wgc4 CVE-2026-112911filelock: StrictSoftFileLock and SoftReadWriteLock adopt a protocol directory another user created first, losing mutual exclusion
- MEDIUMGHSA-m462-7rxw-wvpg CVE-2026-112938filelock: StrictSoftFileLock follows a symbolic link swapped in at <path>.filelock and creates claim files in a directory another local user chooses
- MEDIUMGHSA-rfpc-qcw5-3pc4 CVE-2026-112939filelock: SoftFileLock removes a live holder's marker when another user forges the PID in a writable marker
- MEDIUMGHSA-6627-m3xw-93mp CVE-2026-112908filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live hold
- MEDIUMGHSA-8mx5-7m5m-r77g CVE-2026-112910filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL
- MEDIUMGHSA-j8f7-rjxc-mr56 CVE-2026-112936filelock: ReadWriteLock follows a symlink at the lock path into SQLite
- LOWGHSA-567q-5qvw-pf92 CVE-2026-112907filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break
- LOWGHSA-9vhv-jxww-xfm5 CVE-2026-112913filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database
- LOWGHSA-9j6q-wvj5-jgjg CVE-2026-112912filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker
transformersPyPI 5.8.1 HIGH 4 advisories 5.10.0
- HIGHGHSA-xrqw-3rrv-vx5w CVE-2026-9856 PYSEC-2026-3929Transformers save_pretrained path traversal allows arbitrary file writes through chat template names
- HIGHGHSA-x9r9-c232-4q39 CVE-2026-80047 PYSEC-2026-4174Hugging Face Transformers downloads custom generation code before trust consent
- MEDIUMPYSEC-2026-4174 CVE-2026-80047 GHSA-x9r9-c232-4q39Hugging Face Transformers downloads custom generation code before trust consent
- MEDIUMPYSEC-2026-3929 CVE-2026-9856 GHSA-xrqw-3rrv-vx5wTransformers save_pretrained path traversal allows arbitrary file writes through chat template names
soupsievePyPI 2.10 HIGH 3 advisories 3.0.24.0.0
- HIGHGHSA-6655-6qjp-jx7x CVE-2026-126191Soup Sieve: Exponential ReDoS in selector compilation via \\9-run in CSS_ESCAPES/IDENTIFIER
- HIGHGHSA-mmhr-3c5m-f64f CVE-2026-126190Soup Sieve: Polynomial-time denial of service in the descendant combinator
- MEDIUMGHSA-7g44-g9rc-x53w CVE-2026-126193Soup Sieve: Uncontrolled recursion in CSS parser lets nested pseudo-class selectors exhaust the Python call stack
2 vulnerable packages outside the server itself (used only for development, tests or examples, not shipped)
tornadoPyPI 6.5.10 MEDIUM 4 advisories 6.66.6.1
- MEDIUMGHSA-pcg2-g6cj-q92c CVE-2026-116577Tornado: Quadratic CPU usage when parsing HTTP headers with line folding
- MEDIUMGHSA-r4j5-9xpp-3985 CVE-2026-115927Tornado: Event loop blocking and excess memory use from chunked bodies with many small chunks
- LOWGHSA-pw9p-v7r6-gx4p CVE-2026-116578Tornado: Open redirect in RedirectHandler via protocol-relative URLs
- LOWGHSA-5cjw-f85j-cv6r CVE-2026-126347Tornado: Open redirect via triple-slash redirect paths
tornadoPyPI 6.6 LOW 1 advisory 6.6.1
- LOWGHSA-5cjw-f85j-cv6r CVE-2026-126347Tornado: Open redirect via triple-slash redirect paths
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| Servers in the code | 1 (docling) |
The project's own security
| Security policy | yes .github/SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-14 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.docling-project/docling-mcp |
|---|---|
| Listed in | 5 catalogs (github_search, glama, mcp_registry, mcp_toplist, mcpservers_org) |
| License | MIT |
| Created | 2025-03-14 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.