Vulnerability
CVE-2026-126070
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, strip_tags in Action View returns its sanitized output marked html_safe, but the underlying sanitizer encodes only &, < and >, leaving " and ' unencoded. Because ERB does not escape a string marked html_safe, untrusted input passed through strip_tags and rendered inside a quoted HTML attribute value could close the attribute and add new attributes, possibly leading to XSS. Applications that render strip_tags output from untrusted input inside an HTML attribute, for example in a title attribute or a <meta content> tag, are affected. Output rendered as element content is not affected. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
70 advisories report this vulnerability, across 6 ecosystems.
Advisories
- CGA-256q-p5mh-92h9
- CGA-26qm-4f2c-3cf2
- CGA-2749-x8wh-h56w
- CGA-2w3q-wg8v-jfp2
- CGA-2xmc-7rfp-vw7j
- CGA-44f5-x9p5-3cjr
- CGA-4942-q9jw-hq8v
- CGA-4v7v-rcw8-cr8v
- CGA-4w4h-8xpq-fqhw
- CGA-5frh-2w8v-627g
- CGA-664x-w4g7-62m9
- CGA-6q28-x7xr-5x4g
- CGA-6q9c-5h78-9256
- CGA-7fwh-3q63-f6vh
- CGA-7p8m-2xwh-xq64
- CGA-86h8-g6vm-w65m
- CGA-8985-qfm6-x9w6
- CGA-8prx-pgr3-5chh
- CGA-8q42-6rgw-jc4j
- CGA-8qc7-2476-whrx
- CGA-8qr2-h5gj-gh52
- CGA-9f25-8vm3-6q5w
- CGA-c5p7-5c94-h4q6
- CGA-c6c7-qhj9-jcqp
- CGA-c6x3-7m3j-vprq
- CGA-cm65-q7hq-h9xc
- CGA-cq6x-72gj-vf8j
- CGA-cwqg-rc9c-x4f8
- CGA-f25j-679h-365v
- CGA-fc78-5j29-vgfv
- CGA-ffgp-6p9x-x7qx
- CGA-fhjv-67cm-4j7w
- CGA-fq82-4ph7-7fwj
- CGA-g9r4-8c44-hmw2
- CGA-gf77-h8r3-3wv5
- CGA-gwmc-68fm-887m
- CGA-hcgg-r6cf-963h
- CGA-hhvq-h4gh-3fgx
- CGA-hp26-mw7p-49r5
- CGA-j3w5-fwx3-mm6q
- CGA-j6g2-w9v7-fx9p
- CGA-jcfj-mhcc-3xm3
- CGA-jg2q-fjm8-9j46
- CGA-jhc5-vm4r-xr53
- CGA-jmjp-g52w-qwmm
- CGA-jw28-mfgg-w87f
- CGA-m7gm-4g3x-2cr4
- CGA-mcq9-229v-hwh9
- CGA-mxc6-5jcm-hvfx
- CGA-p5xh-62p7-cjxc
- CGA-q2g4-x5r3-h268
- CGA-qhq3-329r-9phg
- CGA-qmqq-2x84-hwqv
- CGA-r79c-h9h7-w43w
- CGA-r9q4-99cf-fpqq
- CGA-rhwg-g672-5c53
- CGA-v9g7-p73r-q84j
- CGA-vq4w-h592-4p29
- CGA-vr2v-wxc6-5ghc
- CGA-w5j9-v8fq-xqrh
- CGA-w9vc-x2c4-c7r5
- CGA-x7q3-9q99-jpv9
- CGA-x9xg-xpx8-grw9
- CGA-xh52-q2pq-x8cc
- CGA-xpm8-xp26-574j
- CGA-xxv3-6qg3-5ccf
-
DEBIAN-CVE-2026-126070
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, strip_tags in Action View returns its sanitized output marked…
-
GHSA-rq8q-p985-fjq7
Action View: Possible XSS vulnerability in strip_tags
-
SUSEVEX-CVE-2026-126070
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, strip_tags in Action View returns its sanitized output marked…
-
UBUNTU-CVE-2026-126070
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, strip_tags in Action View returns its sanitized output marked…
References
- https://github.com/rails/rails/commit/568b19cb860322885593e308a7f27aceb779e9d7
- https://github.com/rails/rails/commit/c3772a10f405f9644125cbb484adfd2aa7a25a59
- 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-rq8q-p985-fjq7