CVE-2026-33170

6.1 MEDIUM
Published: March 24, 2026 Modified: March 24, 2026
View on NVD

Description

Active Support is a toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, `SafeBuffer#%` does not propagate the `@html_unsafe` flag to the newly created buffer. If a `SafeBuffer` is mutated in place (e.g. via `gsub!`) and then formatted with `%` using untrusted arguments, the result incorrectly reports `html_safe? == true`, bypassing ERB auto-escaping and possibly leading to XSS. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/rails/rails/releases/tag/v7.2.3.1
Source: security-advisories@github.com
Release Notes
https://github.com/rails/rails/releases/tag/v8.0.4.1
Source: security-advisories@github.com
Release Notes
https://github.com/rails/rails/releases/tag/v8.1.2.1
Source: security-advisories@github.com
Release Notes
https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
Source: security-advisories@github.com
Vendor Advisory

7 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.1 / 10.0
EPSS (Exploit Probability)
0.0%
2th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

rubyonrails