{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-29479","id":"CVE-2021-29479","title":"Cached redirect poisoning via X-Forwarded-Host header","description":"Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, a user supplied `X-Forwarded-Host` header can be used to perform cache poisoning of a cache fronting a Ratpack server if the cache key does not include the `X-Forwarded-Host` header as a cache key. Users are only vulnerable if they do not configure a custom `PublicAddress` instance. For versions prior to 1.9.0, by defa","descriptionLong":"Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, a user supplied `X-Forwarded-Host` header can be used to perform cache poisoning of a cache fronting a Ratpack server if the cache key does not include the `X-Forwarded-Host` header as a cache key. Users are only vulnerable if they do not configure a custom `PublicAddress` instance. For versions prior to 1.9.0, by default, Ratpack utilizes an inferring version of `PublicAddress` which is vulnerable. This can be used to perform redirect cache poisoning where an attacker can force a cached redirect to redirect to their site instead of the intended redirect location. The vulnerability was patched in Ratpack 1.9.0. As a workaround, ensure that `ServerConfigBuilder::publicAddress` correctly configures the server in production.","published":"2021-06-29T14:35:12.000Z","updated":"2026-10-20T10:54:37.266305508Z","reserved":"2021-03-30T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L","rating":"high","source":"GitHub"},{"version":"2.0","score":4,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["ratpack"],"affectedProducts":[{"vendor":"ratpack","product":"ratpack","defaultStatus":null,"versions":[{"status":"affected","version":"< 1.9.0"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"io.ratpack:ratpack-core","purl":"pkg:maven/io.ratpack/ratpack-core","ranges":["<1.9.0"],"fixed":["1.9.0"],"advisory":"GHSA-w6rq-6h34-vh7q"}],"cwes":["CWE-807"],"aliases":["GHSA-w6rq-6h34-vh7q"],"references":[{"url":"https://portswigger.net/web-security/web-cache-poisoning","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/ratpack/ratpack/security/advisories/GHSA-w6rq-6h34-vh7q","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29479","tags":["advisory"]},{"url":"https://github.com/ratpack/ratpack","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00857,"epssPercentile":0.59171,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-29479","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29479","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-29479","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w6rq-6h34-vh7q","ok":true,"note":"GHSA-w6rq-6h34-vh7q"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-29479","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}