ADVISORIES

Vulnerability

CVE-2026-126075

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.

6 advisories report this vulnerability, across 3 ecosystems.

Medium severity All Chainguard 4RubyGems 1Ubuntu 1

Advisories

  • CGA-3hwr-6hrf-vf3h
    CVE-2026-126075 Chainguard Updated 12 November 2026
  • CGA-87vr-g92p-p992
    CVE-2026-126075 Chainguard Updated 12 November 2026
  • CGA-hxhv-5xm9-9gr3
    CVE-2026-126075 Chainguard Updated 12 November 2026
  • CGA-vhh3-w8wg-g4xq
    CVE-2026-126075 Chainguard Updated 12 November 2026
  • GHSA-2w9f-fxwj-w2qf

    Active Support: Possible XSS vulnerability in Active Support MessagePack serializer

    Moderate CVE-2026-126075 RubyGems Updated 10 November 2026
  • UBUNTU-CVE-2026-126075

    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…

    CVE-2026-126075 Ubuntu Updated 24 November 2026

References