CVE-2021-41263
HIGH 8.8CVSS 3.1Rails Multisite secure/signed cookies share secrets between sites in a multi-site application
rails_multisite provides multi-db support for Rails applications. In affected versions this vulnerability impacts any Rails applications using rails_multisite alongside Rails' signed/encrypted cookies. Depending on how the application makes use of these cookies, it may be possible for an attacker to re-use cookies on different 'sites' within a multi-site Rails application. The issue has been patched in v4 of the rails_multisite gem. Note that this upgrade will invalidate all previous signed/encrypted cookies. The impact of this invalidation will vary based on the application architecture.
- Published
- 15 Nov 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-327CWE-565
- Also known as
- GHSA-844m-cpr9-jcmh
- Sources
- NVDJSONOSV GHSA-844m-cpr9-jcmhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | discourse | rails_multisitecpe:2.3:a:discourse:rails_multisite:*:*:*:*:*:ruby:*:* |
< 4.0.0 | 4.0.0 |
| OSV | RubyGems | rails_multisite | < 4.0.0 | 4.0.0 |
References
- https://github.com/discourse/rails_multisite/commit/c6785cdb5c9277dd2c5ac8d55180dd1ece440ed0 · Patch, Third Party Advisory, WEB
- https://github.com/discourse/rails_multisite/security/advisories/GHSA-844m-cpr9-jcmh · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41263 · ADVISORY
- https://github.com/discourse/rails_multisite · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails_multisite/CVE-2021-41263.yml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 15 Nov 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Nov 2021)