actionview
Affected
- introduced
8.1.0.beta1, fixed8.1.4.1(ecosystem)
Fixed versions
8.1.4.1
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-126070
Action View: Possible XSS vulnerability in strip_tags
Impactstrip_tags in Action View returns its sanitized output marked html_safe, but the underlying sanitizer encodes only &, < and >, 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 <meta content> tag, are affected. Output rendered as element content is not affected.
Detailsstrip_tags now encodes " and ' in its output, as well as &, < and >, 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 upgrade at once:
Credit
This issue was responsibly reported by HackerOne researcher lucasluitjes.
Medium Basis: The source's own band: MODERATE
8.1.0.beta1, fixed 8.1.4.1 (ecosystem)8.1.4.1
The export has no generic command for this ecosystem.
0, fixed 8.0.5.2 (ecosystem)8.0.5.2
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0