Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.16.0 until 2.131.0, the InputFormat.JSON_DOCLING backend in docling/backend/json/docling_json_backend.py validates serialized DoclingDocument input without rejecting picture image references that contain local paths or file URIs. When the document is enriched or exported with ImageRefMode.EMBEDDED, the DoclingDocument._with_embedded_pictures and ImageRef.pil_image methods can open those references and place readable image bytes in Markdown or HTML output. Disclosure is limited to files Pillow can decode as images, while differing decode behavior can also reveal whether a path exists. Direct untrusted loading through docling-core is outside this Docling fix. This issue is fixed in 2.131.0.
PUBLISHED5.2CWE-73CWE-200
Docling: Crafted DoclingDocument JSON embeds local image files into converted output
Problem type
- CWE-73: External Control of File Name or Path
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected products
docling-project
docling
>= 2.16.0, < 2.131.0 - AFFECTED
docling-slim
>= 2.16.0, < 2.131.0 - AFFECTED
References
https://github.com/docling-project/docling/security/advisories/GHSA-p944-4xh2-x776
https://github.com/docling-project/docling/security/advisories/GHSA-p944-4xh2-x776
https://github.com/docling-project/docling/pull/4417
https://github.com/docling-project/docling/pull/4417
https://github.com/docling-project/docling/commit/d4bb776884aba9aa3132f54773f420853cf7afe4
https://github.com/docling-project/docling/commit/d4bb776884aba9aa3132f54773f420853cf7afe4
https://github.com/docling-project/docling/releases/tag/v2.131.0
https://github.com/docling-project/docling/releases/tag/v2.131.0
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-105748Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-105748",
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"dateUpdated": "2026-10-05T21:34:25.628Z",
"dateReserved": "2026-10-05T19:11:07.947Z",
"datePublished": "2026-10-05T21:34:25.628Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M",
"dateUpdated": "2026-10-05T21:34:25.628Z"
},
"title": "Docling: Crafted DoclingDocument JSON embeds local image files into converted output",
"descriptions": [
{
"lang": "en",
"value": "Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.16.0 until 2.131.0, the InputFormat.JSON_DOCLING backend in docling/backend/json/docling_json_backend.py validates serialized DoclingDocument input without rejecting picture image references that contain local paths or file URIs. When the document is enriched or exported with ImageRefMode.EMBEDDED, the DoclingDocument._with_embedded_pictures and ImageRef.pil_image methods can open those references and place readable image bytes in Markdown or HTML output. Disclosure is limited to files Pillow can decode as images, while differing decode behavior can also reveal whether a path exists. Direct untrusted loading through docling-core is outside this Docling fix. This issue is fixed in 2.131.0."
}
],
"affected": [
{
"vendor": "docling-project",
"product": "docling",
"versions": [
{
"version": ">= 2.16.0, < 2.131.0",
"status": "affected"
}
]
},
{
"vendor": "docling-project",
"product": "docling-slim",
"versions": [
{
"version": ">= 2.16.0, < 2.131.0",
"status": "affected"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-73: External Control of File Name or Path",
"cweId": "CWE-73",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"lang": "en",
"description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor",
"cweId": "CWE-200",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://github.com/docling-project/docling/security/advisories/GHSA-p944-4xh2-x776",
"name": "https://github.com/docling-project/docling/security/advisories/GHSA-p944-4xh2-x776",
"tags": [
"x_refsource_CONFIRM"
]
},
{
"url": "https://github.com/docling-project/docling/pull/4417",
"name": "https://github.com/docling-project/docling/pull/4417",
"tags": [
"x_refsource_MISC"
]
},
{
"url": "https://github.com/docling-project/docling/commit/d4bb776884aba9aa3132f54773f420853cf7afe4",
"name": "https://github.com/docling-project/docling/commit/d4bb776884aba9aa3132f54773f420853cf7afe4",
"tags": [
"x_refsource_MISC"
]
},
{
"url": "https://github.com/docling-project/docling/releases/tag/v2.131.0",
"name": "https://github.com/docling-project/docling/releases/tag/v2.131.0",
"tags": [
"x_refsource_MISC"
]
}
],
"metrics": [
{
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "NONE",
"availabilityImpact": "NONE",
"baseScore": 4.3,
"baseSeverity": "MEDIUM"
}
}
]
}
}
}