{"id":"CVE-2026-126075","published":"2026-11-10T20:50:44Z","modified":"2026-11-12T19:04:25Z","title":"Active Support: Possible XSS vulnerability in Active Support MessagePack serializer","vendor":"rails","product":"rails","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00336,"percentile":0.27704,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-2w9f-fxwj-w2qf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails/commit/4ca090665976e6fbc471c38689b399f84b43cdc7","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v8.1.4.1","tags":["x_refsource_MISC"]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":5.54},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"rails","versions":[">= 8.1, < 8.1.4.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-12T19:04:03.818823Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"activesupport","vulnerableRanges":[">=8.1.0.beta1, <8.1.4.1"],"patched":["8.1.4.1"],"from":["GHSA-2w9f-fxwj-w2qf"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-122911","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-33169","published":"2026-03-23","fixed":"8.1.2.1","kev":false},{"cve":"CVE-2026-33170","published":"2026-03-23","fixed":"8.1.2.1","kev":false,"link":{"from":"CVE-2026-33170","to":"CVE-2026-126075","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"8.1.2.1","toFixed":"8.1.4.1","daysApart":232},{"kind":"similar","provenance":"machine","score":0.44,"basis":"same package + description similarity"}]}},{"cve":"CVE-2026-33176","published":"2026-03-23","fixed":"8.1.2.1","kev":false},{"cve":"CVE-2026-126075","published":"2026-11-10","fixed":"8.1.4.1","kev":false},{"cve":"CVE-2026-126080","published":"2026-11-10","fixed":"8.1.4.1","kev":false}],"package":"RubyGems:activesupport"}}