CVE-2021-41263Discourse Rails Multisite
High 8.8
Follow: this CVE · Discourse · Discourse Rails Multisite We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 45
- Auth required
- Yes
- Published
- Nov 15, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Rails Multisite.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rails_multisite |
< 4.0.0 |
4.0.0 |
gem "rails_multisite", ">= 4.0.0" |
Per OSV / GitHub Advisories (GHSA-844m-cpr9-jcmh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| discourse | rails_multisite | < 4.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory