Vulnerability
CVE-2026-126079
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.
70 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-2392-9gg8-vhgm
- CGA-256j-hf4v-7gw8
- CGA-26xp-33cf-4vx2
- CGA-2922-hc38-85mc
- CGA-349h-64q7-c5wv
- CGA-35gf-8363-v53x
- CGA-4444-h3gv-3wp5
- CGA-4924-5gc6-8664
- CGA-4qp8-fw5f-h5wf
- CGA-582r-338f-33w9
- CGA-5w4q-jfhf-rjqp
- CGA-5xxf-98w4-67q2
- CGA-66rv-wgj9-h679
- CGA-69v8-hcjc-7vjq
- CGA-6gr7-6gp5-wfpx
- CGA-6mm7-53gp-fcqg
- CGA-75r2-2qmg-944r
- CGA-7rmm-25c7-jw5g
- CGA-7rxw-6fh2-6h7v
- CGA-7vmx-wjwf-67mq
- CGA-82wx-prq9-ch4h
- CGA-84h7-5995-jwfp
- CGA-87mr-54qh-357j
- CGA-93fc-8g3c-qhjh
- CGA-9gw2-j4xc-pfpc
- CGA-9qh9-7rcj-wjjc
- CGA-9vwc-mf2r-27qj
- CGA-c44p-28rj-wmvr
- CGA-c9wx-22r7-899c
- CGA-cj5m-3j4h-99p3
- CGA-cwvq-cgcr-g8vj
- CGA-f673-x9fm-6xr7
- CGA-f7f8-v3q7-ww52
- CGA-f997-4qv9-7g7j
- CGA-f9vg-rqg3-3w8w
- CGA-fhq9-84mw-cq74
- CGA-fj73-fvff-gr7p
- CGA-frq9-jcv4-632g
- CGA-g2m5-prw4-qmv6
- CGA-gjpv-q4rh-3cg5
- CGA-gvff-rhg5-5jff
- CGA-h25j-xv7x-jc8p
- CGA-h86v-wr7j-44f2
- CGA-hhq6-7j44-249w
- CGA-hx4m-jmhv-m79q
- CGA-hx5w-gv2w-f2c8
- CGA-j68p-4w25-22cf
- CGA-jcpv-hcx6-78vx
- CGA-jgx6-xr4c-vcmx
- CGA-jr3g-jv7g-vfcc
- CGA-mfm4-8vfg-j4r7
- CGA-mxg5-vq65-c8gm
- CGA-p284-xmq2-58c5
- CGA-p3xj-m5jf-8c7r
- CGA-qc86-pcjq-j2m2
- CGA-qhgx-4x4g-mgq6
- CGA-qp43-5gfh-f232
- CGA-r273-734r-g348
- CGA-r8rj-wwxp-5f2v
- CGA-rfxj-3j8r-w972
- CGA-rh8x-p746-chwv
- CGA-v63x-3m79-f59c
- CGA-wfgv-5q69-wm77
- CGA-wg58-frh7-hfjc
- CGA-xfx3-8c6h-wxhv
- CGA-xw8h-8845-hm3x
-
DEBIAN-CVE-2026-126079
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…
-
GHSA-2p2f-4rq4-gjwc
Action View: Possible XSS vulnerability in text helpers
-
SUSEVEX-CVE-2026-126079
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…
-
UBUNTU-CVE-2026-126079
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…
References
- http://github.com/rails/rails/commit/adc3a32d4abea77ed3aacf6f5fb71cfc005bef73
- 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
- https://github.com/rails/rails/security/advisories/GHSA-2p2f-4rq4-gjwc