# CVE-2026-126075: Active Support: Possible XSS vulnerability in Active Support MessagePack serializer

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- 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.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-11-10T20:50:44.522Z
- Modified: 2026-11-12T22:09:39.233Z
- Also known as: GHSA-2w9f-fxwj-w2qf
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Active Support is a collection of utility classes and standard library extensions used by Rails and other Ruby projects. From 8.1 until 8.1.4.1, ActiveSupport::MessagePack serializes an ActiveSupport::SafeBuffer as its bytes alone and deserializes it as a new SafeBuffer, so a buffer that is no longer html_safe? (for example, one mutated in place with gsub!) is restored as html_safe. If such a buffer holds untrusted input and is stored through a MessagePack serializer, rendering it after it is loaded bypasses ERB auto-escaping, possibly leading to XSS. Applications on Rails 8.1 are affected if they use a MessagePack serializer, such as config.action_dispatch.cookies_serializer = :message_pack or :message_pack_allow_marshal, or serializer: :message_pack for Rails.cache, ActiveSupport::MessageVerifier or ActiveSupport::MessageEncryptor, and store a SafeBuffer that was mutated in place with untrusted input. Rails 8.0 and earlier do not serialize SafeBuffer with MessagePack and are not affected. This issue is fixed in version 8.1.4.1.

(As written by CVE List.)

## Affected

- rails rails: >= 8.1, < 8.1.4.1
- activesupport (RubyGems): from 8.1.0.beta1 before 8.1.4.1

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/rails/rails/security/advisories/GHSA-2w9f-fxwj-w2qf> (web)
- <https://github.com/rails/rails/commit/4ca090665976e6fbc471c38689b399f84b43cdc7> (web)
- <https://github.com/rails/rails/releases/tag/v8.1.4.1> (web)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/GHSA-2w9f-fxwj-w2qf.yml> (web)

## Sources

- CVE List: [CVE-2026-126075](https://www.cve.org/CVERecord?id=CVE-2026-126075), CVE Terms of Use, modified 2026-11-12
- GitHub Advisory Database: [GHSA-2w9f-fxwj-w2qf](https://github.com/advisories/GHSA-2w9f-fxwj-w2qf), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-126075](https://nvd.nist.gov/vuln/detail/CVE-2026-126075), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-126075 · Whole record: https://cve.day/CVE-2026-126075.json · Rebuilt by cve.day 2026-11-25T22:59:50.274Z
