{"id":"CVE-2021-29481","published":"2021-06-29T18:20:12Z","modified":"2024-08-03T22:11:05Z","title":"Client side sessions should not allow unencrypted storage","vendor":"ratpack","product":"ratpack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00455,"percentile":0.40402,"provenance":"source"},"cwes":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"}],"references":[{"url":"https://github.com/ratpack/ratpack/security/advisories/GHSA-phj8-4cq3-794g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ratpack/ratpack/pull/1590","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":8.08},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"ratpack","affectedVersions":[{"vendor":"ratpack","product":"ratpack","versions":["< 1.9.0"]}],"affected":[{"ecosystem":"Maven","package":"io.ratpack:ratpack-session","vulnerableRanges":["<1.9.0"],"patched":["1.9.0"],"from":["GHSA-phj8-4cq3-794g"],"provenance":"source"}],"summary":{"text":"Ratpack, a toolkit for building web applications, uses client-side sessions in versions prior to 1.9.0 whose default configuration stores session data in cookies that are signed but not encrypted, so the contents are readable by anyone who can access the cookie values. Exploiting this requires that sensitive data be placed in the session and that the session cookie be exposed, for example through an adjacent cross-site scripting flaw on the site, given that the cookies are not set with httpOnly; the issue is fixed in 1.9.0, and supplying an encryption key per the documentation is a workaround.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:08Z"},"euvd":{"id":"EUVD-2021-1484","exploited":false,"provenance":"source"}}