# CVE-2021-41263: Secure/signed cookies share secrets between sites in rails_multisite

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- 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.63%, higher than 51% of CVEs (2026-12-02)
- Published: 2021-11-15T17:54:01.000Z
- Modified: 2026-07-08T06:28:21.002Z
- Also known as: GHSA-844m-cpr9-jcmh
- Weaknesses: CWE-200, CWE-327, CWE-565
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- discourse rails_multisite: < 4.0.0; before 4.0.0
- rails_multisite (RubyGems): before 4.0.0

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.0 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/discourse/rails_multisite/security/advisories/GHSA-844m-cpr9-jcmh> (third-party-advisory, web)
- <https://github.com/discourse/rails_multisite/commit/c6785cdb5c9277dd2c5ac8d55180dd1ece440ed0> (patch, 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)

## Sources

- CVE List: [CVE-2021-41263](https://www.cve.org/CVERecord?id=CVE-2021-41263), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-844m-cpr9-jcmh](https://github.com/advisories/GHSA-844m-cpr9-jcmh), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41263](https://nvd.nist.gov/vuln/detail/CVE-2021-41263), Public domain, modified 2026-06-17

---

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