CVE-2026-126075 Active Support: Possible XSS vulnerability in Active Support MessagePack serializer
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
6 packages: 1 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rails(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| rubygems activesupport(RubyGems) | = 8.1.0; = 8.1.0.beta1; = 8.1.0.rc1; = 8.1.1 +6 more | 8.1.4.1 | Fixed |
| rails | = >= 8.1, < 8.1.4.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems activesupport(RubyGems) | >= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 |
| rubygems activesupport(RubyGems) | = 8.1.0 | No fix listed |
| rubygems activesupport(RubyGems) | = 8.1.0.beta1 | No fix listed |
| rubygems activesupport(RubyGems) | = 8.1.0.rc1 | No fix listed |
| rubygems activesupport(RubyGems) | = 8.1.1 | No fix listed |
| rubygems activesupport(RubyGems) | = 8.1.2 | No fix listed |
| rubygems activesupport(RubyGems) | = 8.1.2.1 | No fix listed |
| rubygems activesupport(RubyGems) | = 8.1.3 | No fix listed |
| rubygems activesupport(RubyGems) | = 8.1.3.1 | No fix listed |
| rubygems activesupport(RubyGems) | = 8.1.4 | No fix listed |
| rails | = >= 8.1, < 8.1.4.1 | No fix listed |
| ubuntu/rails(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:26.10) | All versions | No fix listed |
References
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2571263 issue-tracking
- www.cve.org
- nvd.nist.gov
- https://github.com/rails/rails/commit/4ca090665976e6fbc471c38689b399f84b43cdc7 patch
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails/security/advisories/GHSA-2w9f-fxwj-w2qf vendor-advisory
- Debian Security Tracker CVE-2026-126075 vendor-advisory
- github.com product
- github.com
- github.com
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-122911 third-party-advisory