Summary
linuxfabrik-lib: fetch() forwards credential headers across a cross-origin redirect
Advisory 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
- https://github.com/advisories/GHSA-4jc5-g844-4x33
- https://github.com/Linuxfabrik/monitoring-plugins/security/advisories/GHSA-4jc5-g844-4x33
- https://nvd.nist.gov/vuln/detail/CVE-2026-67435
- https://github.com/Linuxfabrik/lib/commit/6573ff9347e541200305d278d2663d2e54e052ff
- https://github.com/Linuxfabrik/lib/releases/tag/v6.0.0
Related vulnerabilities
All Supply chain →- MEDIUMCVE-2026-54689
SearXNG MCP Server: Additional hardened-mode SSRF bypasses
- HIGHGHSA-p77j-g7h5-r2vw
GeoLens's authorization and cache-scope flaws disclose private dataset data and metadata to unauthorized users (fixed in 1.2.4)
- HIGHCVE-2026-54660
swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`
- HIGHCVE-2026-54605
OAuth: Cross-origin token-request redirects can expose signed request metadata
- HIGHGHSA-2x35-3fw4-9jr4
n8n: Send Email Node Arbitrary File Read and SSRF via Nodemailer Content-Object Type Confusion
- MEDIUMCVE-2026-58442
Gitea: Repository migration SSRF via multi-answer DNS allow-list bypass