PYSEC-2026-3578

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/linuxfabrik-lib/PYSEC-2026-3578.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-3578
Aliases
Published
2026-08-04T11:34:45.223750Z
Modified
2026-08-04T14:30:17.355618428Z
Severity
  • 6.0 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
linuxfabrik-lib: fetch() forwards credential headers across a cross-origin redirect
Details

Summary

lib.url.fetch() follows HTTP redirects (follow_redirects=True). httpx strips only Authorization and Cookie when a redirect crosses the origin, so any other caller-supplied credential header (a session token such as Redfish's X-Auth-Token, an API key, ...) was still sent to the redirect target. A malicious or redirect-capable server can therefore answer an authenticated request with a 3xx to an attacker-chosen host and receive the credential (server-side request forgery + token disclosure). The pre-httpx urllib implementation was worse: it forwarded every header, including Authorization, across cross-host redirects.

Impact

Any plugin that authenticates to a host with a non-standard auth header and follows that host's redirects can be coerced into sending the credential, and an authenticated request, to another host the monitoring server can reach. The concrete case is the Redfish checks (X-Auth-Token), but the flaw is in the shared fetch() and affects every consumer.

Patches

Fixed in linuxfabrik-lib 6.0.0 (commit 6573ff9). On a cross-origin redirect (any scheme/host/port change other than a plain same-host HTTP-to-HTTPS upgrade) fetch() now keeps only benign transport headers and drops every other caller-supplied header, so credentials never follow a redirect to a different origin.

References

Affected packages

PyPI / linuxfabrik-lib

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.0

Affected versions

2.*
2.0.0.0
2.0.0.7
2.1.0.0
2.1.0.4
2.1.1.5
2.1.1.7
2.1.1.15
2.2.0
2.2.1
2.3.0
2.4.0
3.*
3.0.0
3.1.0
3.1.1
3.2.0
3.3.0
3.4.0
3.4.1
4.*
4.0.0
4.0.1
4.0.2
4.1.0
4.2.0
4.3.0
4.4.0
5.*
5.0.0
5.1.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/linuxfabrik-lib/PYSEC-2026-3578.yaml"