CVE-2026-126070
Medium 6.1No known exploitationFix availableAction View: Possible XSS vulnerability in Action View strip_tags
Vendor advisory: GHSA-rq8q-p985-fjq7
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
Not in the KEV catalog
Description
### Impact `strip_tags` in Action View returns its sanitized output marked `html_safe`, but the underlying sanitizer encodes only `&`, ` `, leaving `"` and `'` unencoded. Because ERB does not escape a string marked `html_safe`, untrusted input passed through `strip_tags` and rendered inside a quoted HTML attribute value could close the attribute and add new attributes, possibly leading to XSS. Applications that render `strip_tags` output from untrusted input inside an HTML attribute, for example in a `title` attribute or a ` ` tag, are affected. Output rendered as element content is not affected. ### Details `strip_tags` now encodes `"` and `'` in its output, as well as `&`, ` `, without double-encoding existing entities. Applications that use `strip_tags` output outside HTML, such as in a text template or JSON, now see `"` and `'` where they saw `"` and `'`; `CGI.unescapeHTML` decodes them. See the Action View CHANGELOG. ### Workarounds Pass `strip_tags` output to an attribute through a tag helper, which escapes attribute values, for example `tag.a(title: strip_tags(user_input))`. ### Releases The fixed releases are available at the normal locations. Patches for those who cannot…
Weakness: CWE-79
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- msrc.microsoft.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl4 rubygem-actionview 8.0.2-5.azl4 on Azure Linux 4.0 | Not documented | Not documented | Microsoft MSRC |
| rubygems | actionview | from 8.1.0.beta1 before 8.1.4.1 | 8.1.4.1 | GitHub Advisory Database |
| rubygems | actionview | all versions before 8.0.5.2 | 8.0.5.2 | GitHub Advisory Database |
Timeline
Advisory
Microsoft advisory published
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- GitHub Advisory GHSA-rq8q-p985-fjq7 (opens in a new tab)github-advisory