The Docling team and community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
The latest versions of all Docling repositories are supported.
- Participation in the OpenSSF Best Practices Badge Program for Free/Libre and FLOSS projects to ensure that we follow current best practices for quality and security
- Use of HTTPS for network communication
- Use of secure protocols for network communication (through the use of HTTPS)
- Up-to-date support for TLS/SSL (through the use of OpenSSL)
- Performance of TLS certificate verification by default before sending HTTP headers with private information (through the use of OpenSSL and HTTPS)
- Distribution of the software via cryptographically signed releases (on the PyPI, Quay.io and GHCR.io package repositories)
- Use of GitHub Issues for vulnerability reporting and tracking
- Use of Ruff, Mypy and Pytest for Python code linting (static and dynamic analysers) on pull requests and builds
- Use of GitHub Issues for bug reporting and tracking
This section tells reporters which docling-serve reports we treat as vulnerabilities, and how we score them.
docling-serve is an API service that converts documents for its clients. It has these trust boundaries:
- API clients are trusted to use every API feature. docling-serve has one shared API key (
DOCLING_SERVE_API_KEY) and no per-user permissions. Every client with the key can use every endpoint, including/v1/clear/*. Without an API key, every client that can reach the port has the same access.docling-serve runand the container images listen on all interfaces, so set an API key, or put an authenticating proxy in front, on any deployment that untrusted clients can reach. - Documents are untrusted. The conversion follows the Docling threat model. Report conversion issues to the Docling repository.
- The operator controls the network. Some features make the server connect to URLs chosen by the client: HTTP sources, callbacks and
puttargets. HTTP sources refuse private addresses unlessDOCLINGCORE_ALLOWED_PRIVATE_IPSallows them. Callbacks andputtargets are not filtered, because their usual receivers are on the operator's own network. Restrict where the server can connect with egress network policies. Turn off what you do not use withDOCLING_SERVE_ENABLE_CALLBACKS=falseandDOCLING_SERVE_ALLOWED_TARGET_TYPES. - The operator sets resource limits. Limits such as
DOCLING_SERVE_MAX_FILE_SIZEandDOCLING_SERVE_MAX_NUM_PAGESare off by default. Set request-size limits and rate limits at the ingress or reverse proxy, and run the service with memory and CPU limits. - Configuration and logs are trusted. Only the operator can change the configuration. Logs can contain request details, so restrict who can read them.
For example, we treat these as vulnerabilities:
- Using the API without the key when an API key is configured.
- Reading or changing another client's tasks or results without knowing their task id.
- Bypassing a check that the documentation describes, for example the private-address check for HTTP sources.
- Exposing server secrets, such as the API key or storage credentials, to clients, or to logs in a documented configuration.
- A small request that makes docling-serve itself use memory or CPU out of proportion to its size.
- Code execution, or file access outside the configured paths.
We do not treat these cases as vulnerabilities:
- A client using any API feature when no API key is configured, or when it holds the API key.
- Callbacks or
puttargets connecting to destinations that the deployment's network allows. - Cost that grows linearly with the size or the number of requests, for example a large upload.
- Behavior that needs an option that the documentation marks as risky. We can accept such reports with low severity.
- Issues in the document conversion itself. Report these to the Docling repository.
We score with CVSS 3.1.
- Issues that need API access use
PR:L, also when the deployment has no API key. The open default applies to every endpoint, so it is not counted again in each report. - Only a bypass of a configured API key uses
PR:N. - Issues that need a non-default or risky configuration use
AC:H.
If you think you've identified a security issue in any Docling project repository, please DO NOT report the issue publicly via the GitHub issue tracker, discussions, or any other public forum.
We strongly encourage you to use GitHub's Private Vulnerability Reporting feature, which provides a secure and streamlined process for disclosing security issues:
- Navigate to the Security tab of the specific Docling repository where the vulnerability exists (e.g.,
https://github.com/docling-project/<repository-name>/security)- For example: docling, docling-core, docling-parse, etc.
- Click on "Report a vulnerability"
- Fill out the vulnerability report form with as many details as possible
- Submit the report
This method allows for:
- Secure communication directly with the maintainers team
- Coordinated disclosure through GitHub's built-in workflow
- Automatic tracking of the vulnerability lifecycle
- Credit attribution when the vulnerability is published
Alternatively, you can send an email with as many details as possible to deepsearch-core@zurich.ibm.com. This is a private mailing list for the maintainers team.
Important: Please do not create a public issue or discuss the vulnerability in any public channel until it has been addressed.
Each report is acknowledged and analyzed by the core maintainers within 3 working days.
Any vulnerability information shared with core maintainers stays within the Docling project and will not be disseminated to other projects unless it is necessary to get the issue fixed.
After the initial reply to your report, the security team will keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance.
We will send announcements of security vulnerabilities and steps to remediate on the Docling announcements.