Rails has a possible XSS vulnerability in its Action View tag helpers
Published 23 Mar 2026 · Updated 10 Sept 2026
Is your project on an affected actionview?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=8.1.0.beta1 <8.1.2.1
- Fixed in
- 8.1.2.1
bundle update --conservative actionview # Gemfile: '>= 8.1.2.1'- Affected
- >=8.0.0.beta1 <8.0.4.1
- Fixed in
- 8.0.4.1
bundle update --conservative actionview # Gemfile: '>= 8.0.4.1'- Affected
- <7.2.3.1
- Fixed in
- 7.2.3.1
bundle update --conservative actionview # Gemfile: '>= 7.2.3.1'Details
Impact
When a blank string is used as an HTML attribute name in Action View tag helpers, the attribute escaping is bypassed, producing malformed HTML. A carefully crafted attribute value could then be misinterpreted by the browser as a separate attribute name, possibly leading to XSS. Applications that allow users to specify custom HTML attributes are affected.
Releases
The fixed releases are available at the normal locations.
Credit
This issue was responsibly reported by Hackerone researcher taise.
Is GHSA-v55j-83pf-r9cq in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected actionview, and gives you the command that fixes it.
More advisories for actionview
- MediumCVE-2026-126078Action View: Possible XSS vulnerability in highlight helper · 12 Nov 2026
- MediumCVE-2026-126070Action View: Possible XSS vulnerability in strip_tags · 12 Nov 2026
- MediumCVE-2026-126079Action View: Possible XSS vulnerability in text helpers · 12 Nov 2026
- MediumCVE-2026-126069Action View: Possible XSS vulnerability in tag helpers · 12 Nov 2026
- MediumCVE-2023-23913rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements · 9 Jun 2023
- MediumCVE-2022-27777XSS Vulnerability in Action View tag helpers · 27 Apr 2022
References
- Linkgithub.com/rails/rails/security/advisories/GHSA-v55j-83pf-r9cq
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-33168
- Linkgithub.com/rails/rails/commit/0b6f8002b52b9c606fd6be9e7915d9f944cf539c
- Linkgithub.com/rails/rails/commit/63f5ad83edaa0b976f82d46988d745426aa4a42d
- Linkgithub.com/rails/rails/commit/c79a07df1e88738df8f68cb0ee759ad6128ca924
- Packagegithub.com/rails/rails
- Linkgithub.com/rails/rails/releases/tag/v7.2.3.1
- Linkgithub.com/rails/rails/releases/tag/v8.0.4.1
- Linkgithub.com/rails/rails/releases/tag/v8.1.2.1
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2026-33168.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.