CVE-2026-126069: Action View: Possible XSS vulnerability in tag helpers
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-68p9-83h6-5wpj
Summary
A Cross-Site Scripting (XSS) vulnerability in Action View tag helpers allows malformed HTML attributes when whitespace symbols are passed. Engineering teams using vulnerable versions of Action View should upgrade immediately.
Who is affected
Applications that allow users to specify custom HTML attribute names or pass whitespace string names to asset tag helpers (such as image_tag, video_tag, and audio_tag) are affected. A carefully crafted attribute value can be misinterpreted by the browser as a separate attribute name, potentially leading to XSS.
Exploitability
The vulnerability has a CVSS base score of 4.7 (MEDIUM) with a vector of CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating network accessibility, high complexity, and required user interaction. The EPSS score is 0.002, and it is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the RubyGems actionview package to version 8.1.4.1, version 8.0.5.2, or later.
- Apply the vendor patches directly if upgrading is not immediately possible.
How to check your project
- Check the project's Gemfile or Gemfile.lock for the actionview gem version.
- Verify if actionview falls within the affected ranges: introduced 8.1.0.beta1 and fixed in 8.1.4.1, or introduced 0 and fixed in 8.0.5.2.
Automated analysis of the published advisory data, generated 2026-11-19. 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:H/PR:N/UI:R/S:C/C:L/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Changed |
| Confidentiality | Low |
| Integrity | Low |
| Availability | None |
FAQ
What causes the vulnerability?
Symbol names made only of whitespace pass blank checks because Symbol#blank? is equivalent to Symbol#empty?, causing them to reach attribute escaping and produce malformed HTML.
Which packages are affected?
The RubyGems actionview package is affected in versions introduced at 8.1.0.beta1 (fixed in 8.1.4.1) and introduced at 0 (fixed in 8.0.5.2).
Is there active exploitation documented for this CVE?
No, CISA Known Exploited Vulnerabilities status is no.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-68p9-83h6-5wpj
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-126069
- WEB https://github.com/rails/rails/commit/9190210606ffe52f92fdc75637f8ff69404f22c8
- WEB https://github.com/rails/rails/commit/f47452533e1f28d847c63181b9d5f8b7243ef9a4
- 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-68p9-83h6-5wpj.yml
Source records: GHSA-68p9-83h6-5wpj (OSV.dev) · EPSS by FIRST, 2026-11-26.