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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-10 · Modified: 2026-11-12
- Aliases: GHSA-2w9f-fxwj-w2qf, CGA-hxhv-5xm9-9gr3, CGA-3hwr-6hrf-vf3h, CGA-vhh3-w8wg-g4xq, CGA-87vr-g92p-p992, UBUNTU-CVE-2026-126075
- Record: https://cvemate.com/vulnerability/CVE-2026-126075 · JSON: https://cvemate.com/vulnerability/CVE-2026-126075/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.332%, percentile 28.383%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard pghero (Chainguard): All versions (No fix recorded) \| \< 3.8.0-r13
- chainguard pghero-fips (Chainguard): \< 3.8.0-r12 \| \< 3.8.0-r13
- ubuntu rails (Ubuntu): All versions (No fix recorded)
- RubyGems activesupport (RubyGems): ≥ 8.1.0.beta1, \< 8.1.4.1
- rails rails: ≥ 8.1, \< 8.1.4.1

## References

- <https://github.com/rails/rails/security/advisories/GHSA-2w9f-fxwj-w2qf>
- <https://github.com/rails/rails/commit/4ca090665976e6fbc471c38689b399f84b43cdc7>
- <https://github.com/rails/rails/releases/tag/v8.1.4.1>
- <https://github.com/rails/rails>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/GHSA-2w9f-fxwj-w2qf.yml>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126075.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126075>
- <https://ubuntu.com/security/CVE-2026-126075>
- <https://www.cve.org/CVERecord?id=CVE-2026-126075>

---

Data as of 2026-12-05T10:40:45.128Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
