CVE-2026-57209
Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode
Heimdall is a cloud native Identity Aware Proxy and Access Control Decision service. Prior to version 0.17.17, when Heimdall operates in proxy mode, it constructs the Forwarded HTTP header after executing the matched rule pipeline by inserting the incoming request's Host header value directly into the header string without sanitizing commas or semicolons. This allows an attacker to inject additional parameters into the Forwarded header, potentially spoofing IP addresses for upstream services. This issue has been patched in version 0.17.17.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.0
Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode
Heimdall is a cloud native Identity Aware Proxy and Access Control Decision service. Prior to version 0.17.17, when Heimdall operates in proxy mode, it constructs the Forwarded HTTP header after executing the matched rule pipeline by inserting the incoming request's Host header value directly into the header string without sanitizing commas or semicolons. This allows an attacker to inject additional parameters into the Forwarded header, potentially spoofing IP addresses for upstream services. This issue has been patched in version 0.17.17.
- Record
CVE-2026-57209- CVSS 4.0
- 7.0 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N - Weakness
- CWE-20, CWE-74
- Updated
- 2026-11-02
EUVDEUVD-2026-108749
7.0
Heimdall is a cloud native Identity Aware Proxy and Access Control Decision service. Prior to version 0.17.17, when Heimdall operates in proxy mode, it constructs the Forwarded HTTP header after executing the matched rule pipeline by inserting the incoming request's Host header value directly into the header string without sanitizing commas or semicolons. This allows an attacker to inject additional parameters into the Forwarded header, potentially spoofing IP addresses for upstream services. This issue has been patched in version 0.17.17.
- Record
EUVD-2026-108749- CVSS 4.0
- 7.0 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-4jgr-pg2m-m988
7.0
Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode
Summary
When Heimdall operates in proxy mode, it constructs the Forwarded HTTP header after executing the matched rule pipeline by inserting the incoming request's Host header value directly into the header string without sanitizing commas or semicolons. This allows an attacker to inject additional parameters into the Forwarded header, potentially spoofing IP addresses for upstream services.
Vulnerable Code
File: proxy/request_context.go (line 201)
entry := "for=" + clientIP + ";host=" + in.Host + ";proto=" + proto
Go's net/http allows commas and semicolons in Host header values. No sanitization is applied before string concatenation.
PoC
# Inject a spoofed IP into the Forwarded header
curl -s -H "Host: evil.com,for=127.0.0.1" \
"http://TARGET:PORT/protected-resource"
This produces the following Forwarded header sent to the upstream service:
Forwarded: for=1.2.3.4;host=evil.com, for=127.0.0.1;proto=http
Upstream services that parse the Forwarded header according to RFC 7239 will see two entries. If the service trusts the last or any for= value, the attacker successfully spoofs 127.0.0.1 as the client IP.
# More targeted attack: spoof to bypass IP allowlist
curl -s -H "Host: legit.com;for=10.0.0.1;proto=https,for=192.168.1.1" \
"http://TARGET:PORT/admin-panel"
Impact
- IP spoofing: Upstream services behind Heimdall may trust the injected
for=value, believing the request originates from an internal/trusted IP - Access control bypass: Applications that restrict access based on IP address by themselves, without using the corresponding heimdall capabilities (e.g., admin panels, internal APIs), can be bypassed
- Affects all proxy-mode deployments where upstream services parse the
Forwardedheader.
- Record
GHSA-4jgr-pg2m-m988- CVSS 4.0
- 7.0 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N - Weakness
- CWE-20, CWE-74
- Updated
- 2026-11-02
NVD
7.0
Heimdall is a cloud native Identity Aware Proxy and Access Control Decision service. Prior to version 0.17.17, when Heimdall operates in proxy mode, it constructs the Forwarded HTTP header after executing the matched rule pipeline by inserting the incoming request's Host header value directly into the header string without sanitizing commas or semicolons. This allows an attacker to inject additional parameters into the Forwarded header, potentially spoofing IP addresses for upstream services. This issue has been patched in version 0.17.17.
- Record
CVE-2026-57209- CVSS 4.0
- 7.0 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Weakness
- CWE-20, CWE-74
- Updated
- 2026-11-02
OSV
7.0
Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode
Heimdall is a cloud native Identity Aware Proxy and Access Control Decision service. Prior to version 0.17.17, when Heimdall operates in proxy mode, it constructs the Forwarded HTTP header after executing the matched rule pipeline by inserting the incoming request's Host header value directly into the header string without sanitizing commas or semicolons. This allows an attacker to inject additional parameters into the Forwarded header, potentially spoofing IP addresses for upstream services. This issue has been patched in version 0.17.17.
- Record
CVE-2026-57209- CVSS 4.0
- 7.0 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N - Weakness
- CWE-20, CWE-74
- Updated
- 2026-11-04
OSVGHSA-4jgr-pg2m-m988
7.0
Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode
Summary
When Heimdall operates in proxy mode, it constructs the Forwarded HTTP header after executing the matched rule pipeline by inserting the incoming request's Host header value directly into the header string without sanitizing commas or semicolons. This allows an attacker to inject additional parameters into the Forwarded header, potentially spoofing IP addresses for upstream services.
Vulnerable Code
File: proxy/request_context.go (line 201)
entry := "for=" + clientIP + ";host=" + in.Host + ";proto=" + proto
Go's net/http allows commas and semicolons in Host header values. No sanitization is applied before string concatenation.
PoC
# Inject a spoofed IP into the Forwarded header
curl -s -H "Host: evil.com,for=127.0.0.1" \
"http://TARGET:PORT/protected-resource"
This produces the following Forwarded header sent to the upstream service:
Forwarded: for=1.2.3.4;host=evil.com, for=127.0.0.1;proto=http
Upstream services that parse the Forwarded header according to RFC 7239 will see two entries. If the service trusts the last or any for= value, the attacker successfully spoofs 127.0.0.1 as the client IP.
# More targeted attack: spoof to bypass IP allowlist
curl -s -H "Host: legit.com;for=10.0.0.1;proto=https,for=192.168.1.1" \
"http://TARGET:PORT/admin-panel"
Impact
- IP spoofing: Upstream services behind Heimdall may trust the injected
for=value, believing the request originates from an internal/trusted IP - Access control bypass: Applications that restrict access based on IP address by themselves, without using the corresponding heimdall capabilities (e.g., admin panels, internal APIs), can be bypassed
- Affects all proxy-mode deployments where upstream services parse the
Forwardedheader.
- Record
GHSA-4jgr-pg2m-m988- CVSS 4.0
- 7.0 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N - Weakness
- CWE-20, CWE-74
- Updated
- 2026-11-02
OSVGO-2026-5125 No score
Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode in github.com/dadrus/heimdall
Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode in github.com/dadrus/heimdall
- Record
GO-2026-5125- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:12397-1 No score
heimdall-2.2.2-1.1 on GA media
These are all security issues fixed in the heimdall-2.2.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:12397-1- Updated
- 2026-11-04
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/dadrus/heimdallGo |
through 0.17.16 | 0.17.17 |
github.com/dadrus/heimdallGo |
before 0.17.17 | 0.17.17 |
heimdallopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 2.2.2-1.1 | 2.2.2-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, aliases, facts, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-57209 is a high vulnerability (CVSS 7.0) in Dadrus Heimdall, published June 18, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.49%, the 42nd percentile. Fixed in github.com/dadrus/heimdall 0.17.17.
References
github.com/dadrus/heimdall/security/advisories/GHSA-4jgr-pg2m-m988
github.com/dadrus/heimdall/releases/tag/v0.17.17
github.com/advisories/GHSA-4jgr-pg2m-m988
github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57209.json
nvd.nist.gov/vuln/detail/CVE-2026-57209
github.com/dadrus/heimdall
suse.com/security/cve/CVE-2026-57209
suse.com/security/cve/CVE-2026-57210