# CVE-2026-33168: Rails has a possible XSS vulnerability in its Action View tag helpers

Source: https://junglewise.ai/threats/cve-2026-33168-rails-has-a-possible-xss-vulnerability-in-its-action-view-tag  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-23. Updated: 2026-05-11  
License: CC BY 4.0 with a link back

CVE-2026-33168 · Severity: medium · CVSS 4 · Published 2026-03-23

### 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](https://hackerone.com/taise).

Technologies: [actionview (RubyGems)](https://junglewise.ai/threats/technologies/actionview). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2026-33168 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-33168 being exploited in the wild.

**How severe is CVE-2026-33168?** Medium severity, with a CVSS score of 4, published 23 March 2026.

**Which products and versions are affected?** actionview (RubyGems) ECOSYSTEM:introduced=8.1.0.beta1,fixed=8.1.2.1.

**Is there a fix for CVE-2026-33168?** Yes. actionview (RubyGems): upgrade to 8.1.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2026-33168?** Check whether you run actionview (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- actionview (RubyGems): upgrade to 8.1.2.1 or later

  ```sh
  bundle update actionview
  ```


## Affected products

- actionview (RubyGems) ECOSYSTEM:introduced=8.1.0.beta1,fixed=8.1.2.1

## Identifiers

- CVE-2026-33168
- GHSA-v55j-83pf-r9cq

## References

- [https://github.com/rails/rails/security/advisories/GHSA-v55j-83pf-r9cq](https://github.com/rails/rails/security/advisories/GHSA-v55j-83pf-r9cq)
- [https://github.com/rails/rails/commit/0b6f8002b52b9c606fd6be9e7915d9f944cf539c](https://github.com/rails/rails/commit/0b6f8002b52b9c606fd6be9e7915d9f944cf539c)
- [https://github.com/rails/rails/commit/63f5ad83edaa0b976f82d46988d745426aa4a42d](https://github.com/rails/rails/commit/63f5ad83edaa0b976f82d46988d745426aa4a42d)
- [https://github.com/rails/rails/commit/c79a07df1e88738df8f68cb0ee759ad6128ca924](https://github.com/rails/rails/commit/c79a07df1e88738df8f68cb0ee759ad6128ca924)
- [https://github.com/rails/rails/releases/tag/v7.2.3.1](https://github.com/rails/rails/releases/tag/v7.2.3.1)
- [https://github.com/rails/rails/releases/tag/v8.0.4.1](https://github.com/rails/rails/releases/tag/v8.0.4.1)

## Related threats

- [Rails Action View XSS via HTML5 sanitizer in text helpers](https://junglewise.ai/threats/cve-2026-126079-action-view-is-a-framework-for-handling-view-template-lookup-and)
- [Rails Action View TextHelper highlight XSS](https://junglewise.ai/threats/cve-2026-126078-action-view-is-a-framework-for-handling-view-template-lookup-and)
- [Rails Action View strip_tags XSS in HTML attributes](https://junglewise.ai/threats/cve-2026-126070-action-view-is-a-framework-for-handling-view-template-lookup-and)
- [Ruby on Rails Action View XSS in tag helpers via whitespace attribute names](https://junglewise.ai/threats/cve-2026-126069-action-view-is-a-framework-for-handling-view-template-lookup-and)
- [rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements](https://junglewise.ai/threats/cve-2023-23913-rails-ujs-vulnerable-to-dom-based-cross-site-scripting)
