Intel

AIKIDO-2026-22080

activesupport is vulnerable to Cross-Site Scripting (XSS)

GHSA-2w9f-fxwj-w2qfPublished Nov 4, 2026
November 4, 2026

47

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

ActiveSupport::MessagePack in activesupport serializes a SafeBuffer as its bytes and deserializes it as a new html_safe buffer. A buffer that is no longer html_safe? after an in-place mutation such as gsub! is restored as safe, so rendering it skips ERB escaping. Untrusted input stored that way through a MessagePack cookie, cache, or message serializer can run as markup. The fix serializes an unsafe buffer with a marker and deserializes it as a String.

How do I fix this?

Upgrade the activesupport library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and the application stores a mutated SafeBuffer through a MessagePack serializer.

Versions

8.1.0 - 8.1.4

Fixed in 8.1.4.1

Background info

activesupport is vulnerable to Cross-Site Scripting (XSS) in versions 8.1.0 - 8.1.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea