You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CVE-2025-50578: Host Header Injection & Open Redirect in linuxserver/heimdall:latest #1451
While analyzing the latest Docker image of Heimdall, I identified two security vulnerabilities related to improper trust of user-controlled HTTP headers:
Host Header Injection → leads to Open Redirect and unsafe external resource loading.
Open Redirect via Referer → allows redirection to attacker-controlled domains.
Technical Impact
The application loads JS, CSS, and images from attacker-controlled domains when X-Forwarded-Host is manipulated.
Unsafe use of the Referer header results in 302 redirects to external domains.
Avoid using X-Forwarded-Host, Referer, or Origin for redirect logic or dynamic resource inclusion.
Enforce internal-only redirects (same-origin) via a whitelist.
Prefer relative paths for navigation (e.g., /dashboard, /home).
Sanitize or drop untrusted headers unless explicitly set by a known reverse proxy.
📄 Full Report Available
I have a fully documented PDF report with in-depth technical analysis and working Proofs of Concept (PoCs), including:
Exploitation via injection of malicious CSS and JavaScript
Screenshots and testing scenarios with custom HTTP servers
Impact analysis with potential attack chains
I initially submitted the report to security@linuxserver.io on April 12, 2025, but I haven’t received a reply. For transparency and security awareness, I’m now sharing the issue here.
🔐 If you're interested in reviewing the full report, I’ll gladly send it privately via email or any channel you prefer — just let me know how you’d like to receive it.
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Oh dude, I’m so sorry, I completely missed your PR resolving this perceived issue, let me go check it.
edit it doesn’t look like there is a PR, I don’t have a lot of free time at the moment, but I’ll try to dig into it when/if I get a chance. If you are worried about loading assets from evil.com my suggestion until then is don’t access heimdall instances you don’t control yourself or trust the owner of. I don’t personally expose my heimdall instance to the internet, but I know some people do, stay safe out there guys.
Ok @KodeStar thank you very much for keeping the Issue in mind and thanks for the suggestion, I hope it is a problem that can be solved, of course if there is anything from me that you need do not hesitate to ask me, happy rest of the day mate.
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
changed the title [-][Security Issue] Host Header Injection + Open Redirect in linuxserver/heimdall:latest[/-][+]CVE-2025-50578: Host Header Injection & Open Redirect in linuxserver/heimdall:latest[/+]on Jul 22, 2025
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Fix this with the position that it shouldn't break existing installs. If a user would like to make their instance more secure, they can include the TRUSTED_PROXIES env variable to specify trusted proxies specifically. @JFOZ1010
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
LinuxServer-CI commentedon May 16, 2025
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
JFOZ1010 commentedon May 16, 2025
It's not fair, it's a serious issue, it's a vulnerability I'm reporting, why don't they try to sanitize Heimdall's code?
KodeStar commentedon May 16, 2025
Oh dude, I’m so sorry, I completely missed your PR resolving this perceived issue, let me go check it.
edit it doesn’t look like there is a PR, I don’t have a lot of free time at the moment, but I’ll try to dig into it when/if I get a chance. If you are worried about loading assets from evil.com my suggestion until then is don’t access heimdall instances you don’t control yourself or trust the owner of. I don’t personally expose my heimdall instance to the internet, but I know some people do, stay safe out there guys.
JFOZ1010 commentedon May 17, 2025
Ok @KodeStar thank you very much for keeping the Issue in mind and thanks for the suggestion, I hope it is a problem that can be solved, of course if there is anything from me that you need do not hesitate to ask me, happy rest of the day mate.
LinuxServer-CI commentedon Jun 16, 2025
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
[-][Security Issue] Host Header Injection + Open Redirect in linuxserver/heimdall:latest[/-][+]CVE-2025-50578: Host Header Injection & Open Redirect in linuxserver/heimdall:latest[/+]LinuxServer-CI commentedon Aug 23, 2025
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
8 remaining items
LinuxServer-CI commentedon Jan 26, 2026
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Fix CVE-2025-50578: Host Header Injection & Open Redirect vulnerabili…
jaycollett commentedon Jan 29, 2026
Fix this with the position that it shouldn't break existing installs. If a user would like to make their instance more secure, they can include the TRUSTED_PROXIES env variable to specify trusted proxies specifically. @JFOZ1010
LinuxServer-CI commentedon Mar 2, 2026
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
LinuxServer-CI commentedon May 31, 2026
This issue is locked due to inactivity
Harden against host header injection and open redirect