CVE-2026-126070: Action View: Possible XSS vulnerability in strip_tags
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-rq8q-p985-fjq7
Summary
Action View's strip_tags function improperly leaves quotation marks unencoded while marking output as html_safe, potentially enabling Cross-Site Scripting (XSS). Engineering teams using vulnerable versions of Action View should upgrade immediately.
Who is affected
Applications that render strip_tags output from untrusted input inside a quoted HTML attribute value (such as a title attribute or meta content tag) are affected. Because ERB does not escape strings marked html_safe, an attacker could close the attribute and inject new attributes or code. Output rendered as element content is not affected.
Exploitability
The vulnerability can be exploited over the network with low attack complexity, requiring user interaction to execute. The CVSS score is 6.1 (Medium), and the current EPSS score is 0.003 with CISA KEV status set to no.
Remediation
- Upgrade RubyGems actionview to version 8.1.4.1, 8.0.5.2, or later.
- Pass strip_tags output through a tag helper that escapes attribute values as a workaround, for example tag.a(title: strip_tags(user_input)).
How to check your project
- Check the project's Gemfile.lock or dependency configuration for the actionview gem within the affected ranges (introduced 8.1.0.beta1, fixed 8.1.4.1; introduced 0, fixed 8.0.5.2).
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | actionview |
>= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 | bundle update actionview |
| RubyGems | actionview |
>= 0, < 8.0.5.2 | 8.0.5.2 | bundle update actionview |
CVSS 3.0 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Changed |
| Confidentiality | Low |
| Integrity | Low |
| Availability | None |
FAQ
What causes the vulnerability in strip_tags?
strip_tags returns output marked as html_safe, but the underlying sanitizer previously encoded only &, <, and >, leaving quotes (" and ') unencoded.
Is element content rendering affected?
No, output rendered as element content is not affected by this vulnerability.
Are there patches available for older series?
Patches are available for version 8.1 and 8.0 via official commits referenced in the advisory.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-rq8q-p985-fjq7
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-126070
- WEB https://github.com/rails/rails/commit/568b19cb860322885593e308a7f27aceb779e9d7
- WEB https://github.com/rails/rails/commit/c3772a10f405f9644125cbb484adfd2aa7a25a59
- PACKAGE https://github.com/rails/rails
- WEB https://github.com/rails/rails/releases/tag/v8.0.5.2
- WEB https://github.com/rails/rails/releases/tag/v8.1.4.1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/GHSA-rq8q-p985-fjq7.yml
Source records: GHSA-rq8q-p985-fjq7 (OSV.dev) · EPSS by FIRST, 2026-11-21.