CVE-2026-126075

Source
https://cve.org/CVERecord?id=CVE-2026-126075
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126075.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-126075
Aliases
Downstream
CGA (4)
UBUNTU (1)
Published
2026-11-10T20:50:44Z
Modified
2026-11-14T02:30:20Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
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.

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

Affected packages

Git / github.com/rails/rails

Affected ranges

Type
GIT
Repo
https://github.com/rails/rails
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "8.1"
                },
                {
                    "fixed":  "8.1.4.1"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "4ca090665976e6fbc471c38689b399f84b43cdc7"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v8.1.4.1",
            "range":  [
                {
                    "fixed":  "3f290b759c8e2ffe7c257951b1255740751355e4"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v8.*
v8.1.0
v8.1.1
v8.1.2
v8.1.3
v8.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126075.json"