# PYSEC-2026-4189: Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem

- Database: PyPA
- Published: 2026-10-05
- Modified: 2026-10-15

## Tracked as

- [CVE-2026-105742](https://cve.now/CVE-2026-105742.md): Docling: Configured HTTP headers sent to every remote image host named by a document

## Also published as

- [GHSA-P3FW-7699-7926](https://cve.now/GHSA-P3FW-7699-7926.md) (GitHub)
- [PYSEC-2026-4212](https://cve.now/PYSEC-2026-4212.md) (PyPA)

## Affected versions

- docling (PyPI): from 2.95.0, fixed in 2.132.0

## Description

Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.95.0 until 2.132.0, the HTML image resource loader in docling/backend/utils/image_resource_loader.py forwards headers configured through the HTMLBackendOptions.headers setting to every remote image URL named by an untrusted document when enable_remote_fetch=True and fetch_images=True. The loader does not restrict those credentials to the source document's origin, allowing requests that carry custom headers such as API keys and cookies to follow cross-origin redirects and expose the caller's configured credentials to a document author. The default configuration is not affected because remote fetching and configured headers are required. This issue is fixed in 2.132.0.

## References

- https://github.com/docling-project/docling/releases/tag/v2.132.0
- https://github.com/docling-project/docling/commit/5e469137f275ffc443306a30d12a3a45bceb80fb
- https://github.com/docling-project/docling/pull/4420
- https://github.com/docling-project/docling/security/advisories/GHSA-p3fw-7699-7926

Page: https://cve.now/PYSEC-2026-4189

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
