Vulnerability
CVE-2026-126078
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, ActionView::Helpers::TextHelper#highlight substitutes each matched phrase into the :highlighter string without escaping it and returns the result marked HTML-safe. Because sanitizing leaves quote characters in text unescaped, a match substituted into a quoted attribute value of the highlighter, such as the <a href="search?q=\1"> form shown in the method's documentation, could end the attribute value and add attributes to the element, possibly leading to XSS. Applications are affected when they pass a :highlighter that places a placeholder inside an attribute value and highlight text or phrases that a user controls. The default <mark>\1</mark> highlighter and the block form are not 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-262g-6gpf-vjm4
- CGA-28gf-4rr4-q675
- CGA-29f2-hp73-g37r
- CGA-39xf-j3jj-4qj8
- CGA-3g38-cxmx-xm69
- CGA-3m47-3p7x-3fww
- CGA-47jj-7x8m-rp2w
- CGA-47pw-89rf-6rj6
- CGA-47xm-qwjm-jfpg
- CGA-4h72-q7fh-3ffh
- CGA-594r-2r28-q7q6
- CGA-5wpr-p3fv-p6hc
- CGA-5wrv-f4fp-fhr4
- CGA-6gq2-9qp9-h5qj
- CGA-6w9f-gxrx-xw3c
- CGA-7555-6835-xr53
- CGA-7f63-99qq-94cj
- CGA-7v22-cp33-p6pc
- CGA-88m8-7cmj-8r6x
- CGA-8h8m-8qvf-3fvg
- CGA-93gr-43ww-263v
- CGA-9hxh-6vhv-mj52
- CGA-9v6x-6gxw-qvp7
- CGA-c7qw-h6hq-5pfx
- CGA-f3xh-gh5j-rj74
- CGA-f5pr-6994-g54v
- CGA-fgq6-7cvg-75q6
- CGA-fr76-5xj8-pr4m
- CGA-g2rg-5468-q4r7
- CGA-gfhr-53jf-qxhg
- CGA-gp37-22wf-cqpg
- CGA-gp43-8c97-877h
- CGA-gw45-444g-fh7g
- CGA-gxrw-6mm6-w7vp
- CGA-gxv2-35h4-54fg
- CGA-h22r-g4r5-p23r
- CGA-h2fh-hpq3-pp5w
- CGA-h2j3-7c9v-9hc8
- CGA-hhgr-jvpw-j97p
- CGA-hhqx-pggh-x76m
- CGA-hj9w-cprj-gpxm
- CGA-hqmr-369v-hgv4
- CGA-hqq8-g67r-78v4
- CGA-hx7f-7mp7-q9qg
- CGA-j2h9-fc88-9fhg
- CGA-m46j-4v4f-x89f
- CGA-m57g-3jqg-phm5
- CGA-mq7m-7qmf-8qfm
- CGA-p4jh-8c44-hc5v
- CGA-p9g3-g524-hj3j
- CGA-q289-c2w7-q493
- CGA-q33m-9p6r-rpm4
- CGA-q42f-m877-f92g
- CGA-q77q-7gcq-3x4h
- CGA-r46v-7pmm-x2mq
- CGA-rppj-cc5x-8mc3
- CGA-v3h6-5283-jfhv
- CGA-vjj8-mcr6-cpwx
- CGA-vp64-x3qc-jc4m
- CGA-vrvf-xq2h-q29p
- CGA-w3wx-fwp3-pgmj
- CGA-w4h5-74xq-jp4w
- CGA-w4r8-p8gq-7vh3
- CGA-wgjh-pwcv-8jx7
- CGA-x364-jjc4-8hg5
- CGA-xhg8-93fg-rgrw
-
DEBIAN-CVE-2026-126078
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, ActionView::Helpers::TextHelper#highlight substitutes each matched…
-
GHSA-v6rj-xm57-3p59
Action View: Possible XSS vulnerability in highlight helper
-
SUSEVEX-CVE-2026-126078
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, ActionView::Helpers::TextHelper#highlight substitutes each matched…
-
UBUNTU-CVE-2026-126078
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, ActionView::Helpers::TextHelper#highlight substitutes each matched…
References
- https://github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425
- https://github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a
- 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-v6rj-xm57-3p59