๐Ÿ” CVE Alert

CVE-2026-126075

MEDIUM 4.7

Active Support: Possible XSS vulnerability in Active Support MessagePack serializer

CVSS Score
4.7
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-79
Vendor rails
Product rails
Published Nov 10, 2026
Stay Ahead of the Next One

Get instant alerts for rails rails

Be the first to know when new medium vulnerabilities affecting rails rails are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

rails / rails
>= 8.1, < 8.1.4.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/rails/rails/security/advisories/GHSA-2w9f-fxwj-w2qf github.com: https://github.com/rails/rails/commit/4ca090665976e6fbc471c38689b399f84b43cdc7 github.com: https://github.com/rails/rails/releases/tag/v8.1.4.1