Skip to content
Threat Brief

← All advisories

CVE-2026-126070

Medium 6.1No known exploitationFix available

Action View: Possible XSS vulnerability in Action View strip_tags

Vendor advisory: GHSA-rq8q-p985-fjq7

Record last updated

CVSS score

6.1

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

None

No EPSS score available

CISA remediation deadline

None

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

VendorProductAffected versionsFixed inPer
Microsoftazl4 rubygem-actionview 8.0.2-5.azl4 on Azure Linux 4.0Not documentedNot documentedMicrosoft MSRC
rubygemsactionviewfrom 8.1.0.beta1 before 8.1.4.18.1.4.1GitHub Advisory Database
rubygemsactionviewall versions before 8.0.5.28.0.5.2GitHub Advisory Database

Timeline

  1. Advisory

    Microsoft advisory published

    Source: Microsoft MSRC (opens in a new tab)

  2. Patch

    Fix documented by Microsoft MSRC

    Source: Microsoft MSRC (opens in a new tab)

Vendor guidance and references