CVE-2026-126079
CVE-2026-126079 · Action View: Possible XSS vulnerability in Action View text helpers
CVSS 6.1 · Medium · EPSS 0.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- railsNo fix published
- rails Debian 13No fix published
- rails Debian 14No fix published
- actionview RubyGemsUpdate to 8.1.4.1
- and 7 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rails"'gem list --exact actionviewAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, with the HTML5 sanitizer (Rails::HTML5::Sanitizer, the default vendor on CRuby for applications using load_defaults 7.1 or later), Nokogiri before 1.19.5 serializes < and > unescaped inside attribute values. The Action View text helpers highlight and simple_format sanitize their input and then process the resulting HTML as a string: highlight splits it on tag boundaries to insert matches, and simple_format splits it into paragraphs on blank lines. An unescaped > or a blank line inside an attribute value could cause markup in that value, which the sanitizer left inert, to be emitted as live elements in the helper's html_safe output, possibly leading to XSS. Applications that use the HTML5 sanitizer and pass untrusted text to highlight, or to simple_format with html_options, are affected. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
- Published
- Updated
Affected products and versions
rails
- Versions
- < 8.0.5.2: Affected
- >= 8.1, < 8.1.4.1: Affected
No fix published
rails Debian 13
- Versions
- 2:7.2.2.1+dfsg-7
- 2:7.2.2.2+dfsg-1
- 2:7.2.2.2+dfsg-2
- 2:7.2.2.2+dfsg-2~deb13u1
- 2:7.2.2.2+dfsg-2~deb13u2
- 2:7.2.3+dfsg-1
All versions (14)
- 2:7.2.3+dfsg-2
- 2:7.2.3+dfsg-3
- 2:7.2.3.1+dfsg-1
- 2:7.2.3.2+dfsg-1
- 2:7.2.3.2+dfsg-2
- 2:7.2.3.2+dfsg-3
- 2:7.2.4+dfsg-1
- 2:7.2.4+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rails Debian 14
- Versions
- 2:7.2.2.1+dfsg-7
- 2:7.2.2.2+dfsg-1
- 2:7.2.2.2+dfsg-2
- 2:7.2.2.2+dfsg-2~deb13u1
- 2:7.2.2.2+dfsg-2~deb13u2
- 2:7.2.3+dfsg-1
All versions (14)
- 2:7.2.3+dfsg-2
- 2:7.2.3+dfsg-3
- 2:7.2.3.1+dfsg-1
- 2:7.2.3.2+dfsg-1
- 2:7.2.3.2+dfsg-2
- 2:7.2.3.2+dfsg-3
- 2:7.2.4+dfsg-1
- 2:7.2.4+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
actionview RubyGems
- Versions
- 8.1.0
- 8.1.0.beta1
- 8.1.0.rc1
- 8.1.1
- 8.1.2
- 8.1.2.1
All versions (9)
- 8.1.3
- 8.1.3.1
- 8.1.4
- Affected ranges
- ECOSYSTEM: ≥ 8.1.0.beta1, < 8.1.4.1
Update to 8.1.4.1
actionview RubyGems
- Versions
- 4.1.0
- 4.1.0.beta1
- 4.1.0.beta2
- 4.1.0.rc1
- 4.1.0.rc2
- 4.1.1
All versions (302)
- 4.1.10
- 4.1.10.rc1
- 4.1.10.rc2
- 4.1.10.rc3
- 4.1.10.rc4
- 4.1.11
- 4.1.12
- 4.1.12.rc1
- 4.1.13
- 4.1.13.rc1
- 4.1.14
- 4.1.14.1
- 4.1.14.2
- 4.1.14.rc1
- 4.1.14.rc2
- 4.1.15
- 4.1.15.rc1
- 4.1.16
- 4.1.16.rc1
- 4.1.2
- 4.1.2.rc1
- 4.1.2.rc2
- 4.1.2.rc3
- 4.1.3
- 4.1.4
- 4.1.5
- 4.1.6
- 4.1.6.rc1
- 4.1.6.rc2
- 4.1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4
- 7.0.4.1
- 7.0.4.2
- 7.0.4.3
- 7.0.5
- 7.0.5.1
- 7.0.6
- 7.0.7
- 7.0.7.1
- 7.0.7.2
- 7.0.8
- 7.0.8.1
- 7.0.8.2
- 7.0.8.3
- 7.0.8.4
- 7.0.8.5
- 7.0.8.6
- 7.0.8.7
- 7.0.9
- 7.1.0
- 7.1.0.beta1
- 7.1.0.rc1
- 7.1.0.rc2
- 7.1.1
- 7.1.2
- 7.1.3
- 7.1.3.1
- 7.1.3.2
- 7.1.3.3
- 7.1.3.4
- 7.1.4
- 7.1.4.1
- 7.1.4.2
- 7.1.5
- 7.1.5.1
- 7.1.5.2
- 7.1.6
- 7.2.0
- 7.2.0.beta1
- 7.2.0.beta2
- 7.2.0.beta3
- 7.2.0.rc1
- 7.2.1
- 7.2.1.1
- 7.2.1.2
- 7.2.2
- 7.2.2.1
- 7.2.2.2
- 7.2.3
- 7.2.3.1
- 7.2.3.2
- 7.2.4
- 8.0.0
- 8.0.0.1
- 8.0.0.beta1
- 8.0.0.rc1
- 8.0.0.rc2
- 8.0.1
- 8.0.2
- 8.0.2.1
- 8.0.3
- 8.0.4
- 8.0.4.1
- 8.0.5
- 8.0.5.1
- Affected ranges
- ECOSYSTEM: < 8.0.5.2
Update to 8.0.5.2
rails Ubuntu Pro 16.04 LTS
- Versions
- 2:4.1.10-1
- 2:4.2.5-1
- 2:4.2.5.1-1
- 2:4.2.5.2-2
- 2:4.2.6-1
- 2:4.2.6-1ubuntu0.1~esm1
All versions (7)
- 2:4.2.6-1ubuntu0.1~esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rails Ubuntu Pro 18.04 LTS
- Versions
- 2:4.2.9-2
- 2:4.2.9-4
- 2:4.2.10-0ubuntu4
- 2:4.2.10-0ubuntu4+esm1
- 2:4.2.10-0ubuntu4+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rails Ubuntu Pro 20.04 LTS
- Versions
- 2:5.2.2.1+dfsg-1ubuntu1
- 2:5.2.3+dfsg-3
- 2:5.2.3+dfsg-3ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rails Ubuntu Pro 22.04 LTS
- Versions
- 2:6.0.3.7+dfsg-2
- 2:6.1.4.1+dfsg-8ubuntu2
- 2:6.1.4.1+dfsg-8ubuntu2+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rails Ubuntu 24.04 LTS
- Versions
- 2:6.1.7.3+dfsg-2build1
- 2:6.1.7.3+dfsg-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rails Ubuntu 26.10
- Versions
- 2:7.2.3+dfsg-2
- 2:7.2.3.2+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rails Ubuntu 26.04 LTS
- Versions
- 2:7.2.2.1+dfsg-7
- 2:7.2.2.2+dfsg-2
- 2:7.2.3+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/rails/rails/security/advisories/GHSA-2p2f-4rq4-gjwc
- https://github.com/rails/rails/commit/009ea68342d05d02087c04dae7faaa4e4c1def11
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- http://github.com/rails/rails/commit/adc3a32d4abea77ed3aacf6f5fb71cfc005bef73
- https://nvd.nist.gov/vuln/detail/CVE-2026-126079