Active Support Vulnerability in Ruby on Rails by Rails
CVE-2026-126075
What is CVE-2026-126075?
Active Support, a component used in Ruby on Rails and other Ruby projects, has a vulnerability that arises during the serialization of ActiveSupport::SafeBuffer when utilizing the MessagePack serializer. In versions 8.1 through 8.1.4.1, the serializer mistakenly treats SafeBuffer as simple bytes, enabling it to restore the SafeBuffer as html_safe, even if it has been modified to contain untrusted input. This critical oversight can allow attackers to exploit the rendered output, bypassing ERB auto-escaping and leading to potential cross-site scripting (XSS) attacks. Users of Rails applications must assess their usage of MessagePack serializers to mitigate this risk, as earlier versions of Rails do not replicate this serialization behavior.
Affected Version(s)
rails >= 8.1, < 8.1.4.1
