# CVE-2021-29479: Cached redirect poisoning via X-Forwarded-Host header

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-29T14:35:12.000Z
- Modified: 2026-07-08T06:29:24.395Z
- Also known as: GHSA-w6rq-6h34-vh7q
- Weaknesses: CWE-807
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- ratpack ratpack: < 1.9.0
- io.ratpack:ratpack-core (Maven): before 1.9.0
- ratpack_project ratpack: before 1.9.0

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:N`

## References

- <https://portswigger.net/web-security/web-cache-poisoning> (exploit, third-party-advisory, web)
- <https://github.com/ratpack/ratpack/security/advisories/GHSA-w6rq-6h34-vh7q> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29479> (advisory)
- <https://github.com/ratpack/ratpack> (package)

## Sources

- CVE List: [CVE-2021-29479](https://www.cve.org/CVERecord?id=CVE-2021-29479), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-w6rq-6h34-vh7q](https://github.com/advisories/GHSA-w6rq-6h34-vh7q), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-29479](https://nvd.nist.gov/vuln/detail/CVE-2021-29479), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29479 · Whole record: https://cve.day/CVE-2021-29479.json · Rebuilt by cve.day 2026-11-25T22:58:02.367Z
