# CVE-2021-29481: Client side sessions should not allow unencrypted storage

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- 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.46%, higher than 41% of CVEs (2026-12-02)
- Published: 2021-06-29T18:20:12.000Z
- Modified: 2026-07-08T06:27:38.203Z
- Also known as: GHSA-phj8-4cq3-794g
- Weaknesses: CWE-312
- Assigned by: GitHub_M

## Description

Ratpack is a toolkit for creating web applications. In versions prior to 1.9.0, the default configuration of client side sessions results in unencrypted, but signed, data being set as cookie values. This means that if something sensitive goes into the session, it could be read by something with access to the cookies. For this to be a vulnerability, some kind of sensitive data would need to be stored in the session and the session cookie would have to leak. For example, the cookies are not configured with httpOnly and an adjacent XSS vulnerability within the site allowed capture of the cookies. As of version 1.9.0, a securely randomly generated signing key is used. As a workaround, one may supply an encryption key, as per the documentation recommendation.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/ratpack/ratpack/security/advisories/GHSA-phj8-4cq3-794g> (third-party-advisory, web)
- <https://github.com/ratpack/ratpack/pull/1590> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29481> (advisory)
- <https://github.com/ratpack/ratpack> (package)

## Sources

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

---

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