{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-126075","id":"CVE-2026-126075","title":"Rails XSS in Active Support MessagePack SafeBuffer handling","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 buff","descriptionLong":"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.","published":"2026-11-10T20:50:44.522Z","updated":"2026-11-14T02:30:20.748531219Z","reserved":"2026-11-10T17:07:43.284Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["rails"],"affectedProducts":[{"vendor":"rails","product":"rails","defaultStatus":null,"versions":[{"version":">= 8.1, < 8.1.4.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"activesupport","purl":"pkg:gem/activesupport","ranges":[">=8.1.0.beta1 <8.1.4.1"],"fixed":["8.1.4.1"],"advisory":"GHSA-2w9f-fxwj-w2qf"}],"cwes":["CWE-79"],"aliases":["GHSA-2w9f-fxwj-w2qf"],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-2w9f-fxwj-w2qf","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/rails/rails/commit/4ca090665976e6fbc471c38689b399f84b43cdc7","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/rails/rails/releases/tag/v8.1.4.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126075.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126075","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/GHSA-2w9f-fxwj-w2qf.yml","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00336,"epssPercentile":0.27567,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-126075","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126075","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-126075","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2w9f-fxwj-w2qf","ok":true,"note":"GHSA-2w9f-fxwj-w2qf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-126075","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":["ruby"],"critical":[],"attention":null}