CVE-2026-33170
Rails: Active Support: Active Support: Cross-Site Scripting (XSS) due to improper HTML safety flag propagation in SafeBuffer#%
Overview
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.
Source: OX vulnerability database
Severity
6.1 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness: CWE-79
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | activesupport | >=8.1.0.beta1, <8.1.2.1>=8.0.0.beta1, <8.0.4.1<7.2.3.1 | 8.1.2.18.0.4.17.2.3.1~> 7.2.3, >= 7.2.3.1~> 8.0.4, >= 8.0.4.1 |
Open a package to see all its vulnerabilities.
Operating systems · 23 fixes
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | rubygem-activesupport | 7.1.3.4-2.ph4 |
| 5.0 | rubygem-activesupport | 7.0.8.7-2.ph5 |
Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | rubygem-activesupport | affected |
| 7 (satellite:el8) | rubygem-activesupport | affected |
chainguard 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| kube-fluentd-operator | 1.18.2-r60 | |
| gitlab-rails-ce-fips-18-10 | 18.10.3-r0 | |
| gitlab-rails-ce-18-10 | 18.10.3-r1 | |
| gitlab-rails-ce-18-8 | 18.8.11-r4 | |
| gitlab-rails-ce-18-9 +1 | 18.9.5-r0 | |
| kube-logging-operator | 6.4.0-r9 |
3 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rails | affected |
| 12 | rails | 2:6.1.7.10+dfsg-1~deb12u3 |
| 13 | rails | 2:7.2.2.2+dfsg-2~deb13u2 |
| 14 | rails | 2:7.2.3.1+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| rails | 2:6.1.7.10+dfsg-1~deb12u3 |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby3-2-activesupport +2 | 8.1.2.1-r0 |
wolfi 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| kube-fluentd-operator | 1.18.2-r60 | |
| kube-logging-operator | 6.4.0-r9 | |
| cinc-auditor | 7.0.107-r1 | |
| ruby3-2-rails-8-1 | 8.1.3-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-33170
- github.com https://github.com/advisories/GHSA-89vf-4333-qx8v
- github.com https://github.com/rails/rails
- github.com https://github.com/rails/rails/commit/50d732af3b7c8aaf63cbcca0becbc00279b215b7
- github.com https://github.com/rails/rails/commit/6e8a81108001d58043de9e54a06fca58962fc2db
- github.com https://github.com/rails/rails/commit/c1ad0e8e1972032f3395853a5e99cea035035beb
- github.com https://github.com/rails/rails/releases/tag/v7.2.3.1
- github.com https://github.com/rails/rails/releases/tag/v8.0.4.1
- github.com https://github.com/rails/rails/releases/tag/v8.1.2.1
- github.com https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.