{"id":"CVE-2021-29479","details":"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.","aliases":["GHSA-w6rq-6h34-vh7q"],"modified":"2026-07-09T11:24:11.269167Z","published":"2021-06-29T15:15:18.870Z","references":[{"type":"ADVISORY","url":"https://github.com/ratpack/ratpack/security/advisories/GHSA-w6rq-6h34-vh7q"},{"type":"EVIDENCE","url":"https://portswigger.net/web-security/web-cache-poisoning"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ratpack/ratpack","events":[{"introduced":"0"},{"fixed":"d62e05d331577684670e793d9273bb3ddb4c7f6e"}],"database_specific":{"cpe":"cpe:2.3:a:ratpack_project:ratpack:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.9.0"}],"source":"CPE_RANGE"}}],"versions":["v1.9.0-rc-2","v1.9.0-rc-1","v1.8.2","v1.8.1","v1.8.0","v1.7.3","v1.7.2","v1.7.1","v1.7.0","v1.6.0","v1.6.0-rc-4","v1.6.0-rc-3","v1.6.0-rc-2","1.6.0-rc-1","v1.5.0","v1.5.0-rc-3","v1.5.0-rc-1","v1.4.0","v1.4.0-rc-3","v1.4.0-rc-2","v1.4.0-rc-1","v1.3.1","v1.3.0","v1.3.0-rc-2","v1.3.0-rc-1","v1.2.0","v1.2.0-rc-2","v1.2.0-RC-1","v1.1.1","v1.1.0","v1.0.0","v1.0.0-rc-3","v1.0.0-rc-2","v1.0.0-rc-1","v0.9.19","v0.9.18","v0.9.17","v0.9.16","v0.9.15","v0.9.14","v0.9.13","v0.9.12","v0.9.11","v0.9.10","v0.9.9","v0.9.8","v0.9.7","v0.9.6","v0.9.5","v0.9.4","v0.9.3","v0.9.2","v0.9.1","v0.9.0","0.6.1","0.5.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29479.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}