Intel

AIKIDO-2026-42434

pyodata is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)GHSA-hc5j-q32w-c25v Published Today

59

Medium Risk

This Affects:

PYTHONpyodata
1.1.1 - 1.11.2
Fixed in 1.12.0
Are you affected? Scan for Free

TL;DR

The OData v2 client in pyodata.v2.service follows the server-provided __next pagination URL verbatim without comparing it against the configured service root. A malicious or compromised OData endpoint can return a __next value pointing at an arbitrary host, and the client resends every header set on the shared requests.Session, including Authorization bearer tokens and cookies, to that host. This exposes session credentials to a third-party server and lets the response be parsed and surfaced to application code as attacker-influenced entities. The fix rejects cross-origin __next URLs before dispatching the pagination request.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application sets authentication headers on the requests.Session passed to the client and follows server-side __next pagination against an untrusted or compromised OData endpoint.

Background info

pyodata is vulnerable to Server-Side Request Forgery (SSRF) in versions 1.1.1 - 1.11.2.

How to fix this

Upgrade the pyodata library to the patch version.