CVE-2021-29481
HIGH 7.5CVSS 3.1Unencrypted storage of client side sessions
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.
- Published
- 29 Jun 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-312
- Also known as
- GHSA-phj8-4cq3-794g
- Sources
- NVDJSONOSV GHSA-phj8-4cq3-794gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ratpack_project | ratpackcpe:2.3:a:ratpack_project:ratpack:*:*:*:*:*:*:*:* |
< 1.9.0 | 1.9.0 |
| OSV | Maven | io.ratpack:ratpack-session | < 1.9.0 | 1.9.0 |
References
- https://github.com/ratpack/ratpack/pull/1590 · Patch, Third Party Advisory, WEB
- https://github.com/ratpack/ratpack/security/advisories/GHSA-phj8-4cq3-794g · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-29481 · ADVISORY
- https://github.com/ratpack/ratpack · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 29 Jun 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2021)