{"id":"CVE-2026-126075","summary":"Active Support: Possible XSS vulnerability in Active Support MessagePack serializer","details":"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.","aliases":["GHSA-2w9f-fxwj-w2qf"],"modified":"2026-11-14T02:30:20.748531219Z","published":"2026-11-10T20:50:44.522Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126075.json"},"references":[{"type":"WEB","url":"https://github.com/rails/rails/releases/tag/v8.1.4.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126075.json"},{"type":"ADVISORY","url":"https://github.com/rails/rails/security/advisories/GHSA-2w9f-fxwj-w2qf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126075"},{"type":"FIX","url":"https://github.com/rails/rails/commit/4ca090665976e6fbc471c38689b399f84b43cdc7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rails/rails","events":[{"introduced":"1cdd190a25e483b65f1f25bbd0f13a25d696b461"},{"fixed":"3f290b759c8e2ffe7c257951b1255740751355e4"},{"fixed":"4ca090665976e6fbc471c38689b399f84b43cdc7"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"8.1"},{"fixed":"8.1.4.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"4ca090665976e6fbc471c38689b399f84b43cdc7"}]},{"original_tag":"v8.1.4.1","range":[{"fixed":"3f290b759c8e2ffe7c257951b1255740751355e4"}],"source":"REFERENCES_TAG"}]}}],"versions":["v8.1.4","v8.1.3","v8.1.2","v8.1.1","v8.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126075.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}