Cross-site scripting in Ruby on Rails - CVE-2026-33170

 

Cross-site scripting in Ruby on Rails - CVE-2026-33170

Published: March 24, 2026


Vulnerability identifier: #VU124272
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-33170
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data within SafeBuffer#% in Active Support. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

Ruby on Rails
Debian Linux
rails (Debian package)
watsonx Assistant Cartridge
watsonx Orchestrate with watsonx Assistant Cartridge - Assistant Builder Component

How to mitigate CVE-2026-33170

Install updates from vendor's website.

Ruby on Rails - addressed in versions 7.2.3.1, 8.0.4.1, 8.1.2.1
rails (Debian package) - addressed in versions 2:6.1.7.10+dfsg-1~deb12u3, 2:7.2.2.2+dfsg-2~deb13u2
watsonx Assistant Cartridge - update to 5.4.2
watsonx Orchestrate with watsonx Assistant Cartridge - Assistant Builder Component - update to 5.4.2

External References

Related Security Bulletins