Vulnerabilities in pkg:pypi/docling-graph

PACKAGE
Advisory Identifier: GHSA-fqph-j6v6-jvgx
Advisory Summary

CVE-2026-44520 is a MODERATE (CVSS 5.7) docling-graph has ssrf vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Docling graph libraries in the PyPI ecosystem. The issue involves docling-graph has ssrf via missing internal ip validation in urlinputhandler. Remediation is available by upgrading affected packages to version 1.5.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/docling-graph

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/docling-graph. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-fqph-j6v6-jvgx CVE-2026-44520 MODERATE docling-graph has SSRF via Missing Internal IP Validation in URLInputHandler

CVE-2026-44520 at a Glance

CVE Identifier CVE-2026-44520
GHSA Identifier GHSA-fqph-j6v6-jvgx
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Docling graph
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-44520

To remediate this vulnerability, upgrade all affected Docling graph dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

docling-graph fixed: 1.5.1
pip install docling-graph>=1.5.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show docling-graph

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-44520, inspect your installed packages using pip:

pip show docling-graph

Analyze the terminal output to locate any version of Docling graph in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.1), your application is affected.

Note: The pip show docling-graph command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Docling graph, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The `URLInputHandler` class in `docling_graph/core/input/handlers.py` makes HTTP requests to user-supplied URLs without validating whether the target resolves to a private, loopback, or link-local IP address. The `URLValidator` only checks for a valid scheme and non-empty `netloc`, performing no IP-level validation. Additionally, `requests.head()` was called with `allow_redirects=True`, allowing an attacker to redirect requests to internal endpoints via an intermediary URL. An attacker who can control the `--source` CLI argument or `PipelineConfig.source` API parameter can trigger Server-Side Request Forgery (SSRF) to reach: - Cloud metadata endpoints (e.g. `169.254.169.254`) to steal IAM credentials - Internal services on loopback (`127.0.0.1`) or private network ranges (`10.x`, `172.16.x`, `192.168.x`) This affects deployments where `docling-graph` processes URLs from untrusted input, such as multi-tenant pipelines or server-side automation. ### Patches The vulnerability is fixed in **v1.5.1**. Users should upgrade immediately: ``` pip install --upgrade docling-graph ``` The fix adds IP validation via `ipaddress` and `socket.gethostbyname()` before any request is made, blocks private/loopback/link-local/reserved addresses, and disables redirect following (`allow_redirects=False`) with explicit validation of any `Location` header before following it. ### Workarounds If upgrading is not immediately possible, ensure that **all URLs passed to `URLInputHandler` come exclusively from trusted, internal sources**, never from user-supplied or external input. There is no safe code-level workaround short of applying the patch, as the vulnerability is in the library itself. ### Resources - [CWE-918: Server-Side Request Forgery](https://cwe.mitre.org/data/definitions/918.html) - [OWASP SSRF Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html) - [AWS Instance Metadata endpoint](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)

CVE-2026-44520 Affected Docling graph Versions

1 component(s)
Fixed Versions:
1.5.1
Product / Package Ecosystem Affected Versions Fixed Version
docling-graph
PyPI
< 1.5.1
1.5.1

References

Frequently Asked Questions

What is CVE-2026-44520?
CVE-2026-44520 is a security vulnerability in Docling graph involving docling-graph has SSRF via Missing Internal IP Validation in URLInputHandler under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Docling graph versions are affected?
Affected versions include releases prior to 1.5.1 across affected packages: docling-graph.
What version fixes CVE-2026-44520?
Upgrading to 1.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is docling-graph affected?
Yes, docling-graph is affected in releases prior to 1.5.1. Upgrade your dependency to 1.5.1 or later.
What is the CVSS score of CVE-2026-44520?
CVE-2026-44520 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-44520?
CVE-2026-44520 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for CVE-2026-44520?
Run the dependency tree command: 'pip show docling-graph'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fqph-j6v6-jvgx",
  "modified" : "2026-05-14T20:54:24Z",
  "published" : "2026-05-07T03:15:46Z",
  "aliases" : [ "CVE-2026-44520" ],
  "summary" : "docling-graph has SSRF via Missing Internal IP Validation in URLInputHandler",
  "details" : "### Impact\n\nThe `URLInputHandler` class in `docling_graph/core/input/handlers.py` makes HTTP requests to user-supplied URLs without validating whether the target resolves to a private, loopback, or link-local IP address. The `URLValidator` only checks for a valid scheme and non-empty `netloc`, performing no IP-level validation. Additionally, `requests.head()` was called with `allow_redirects=True`, allowing an attacker to redirect requests to internal endpoints via an intermediary URL.\n\nAn attacker who can control the `--source` CLI argument or `PipelineConfig.source` API parameter can trigger Server-Side Request Forgery (SSRF) to reach:\n- Cloud metadata endpoints (e.g. `169.254.169.254`) to steal IAM credentials\n- Internal services on loopback (`127.0.0.1`) or private network ranges (`10.x`, `172.16.x`, `192.168.x`)\n\nThis affects deployments where `docling-graph` processes URLs from untrusted input, such as multi-tenant pipelines or server-side automation.\n\n### Patches\n\nThe vulnerability is fixed in **v1.5.1**.\n\nUsers should upgrade immediately:\n```\npip install --upgrade docling-graph\n```\n\nThe fix adds IP validation via `ipaddress` and `socket.gethostbyname()` before any request is made, blocks private/loopback/link-local/reserved addresses, and disables redirect following (`allow_redirects=False`) with explicit validation of any `Location` header before following it.\n\n### Workarounds\n\nIf upgrading is not immediately possible, ensure that **all URLs passed to `URLInputHandler` come exclusively from trusted, internal sources**, never from user-supplied or external input. There is no safe code-level workaround short of applying the patch, as the vulnerability is in the library itself.\n\n### Resources\n\n- [CWE-918: Server-Side Request Forgery](https://cwe.mitre.org/data/definitions/918.html)\n- [OWASP SSRF Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n- [AWS Instance Metadata endpoint](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "docling-graph"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.5.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/docling-project/docling-graph/security/advisories/GHSA-fqph-j6v6-jvgx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44520"
  }, {
    "type" : "WEB",
    "url" : "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/docling-project/docling-graph"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601", "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-07T03:15:46Z",
    "nvd_published_at" : "2026-05-14T18:16:50Z"
  }
}