# CVE-2026-126078: Action View: Possible XSS vulnerability in Action View highlight helper

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-11-10T21:00:49.416Z
- Modified: 2026-11-12T23:45:03.296Z
- Also known as: GHSA-v6rj-xm57-3p59
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rails rails: < 8.0.5.2; >= 8.1, < 8.1.4.1
- actionview (RubyGems): from 8.1.0.beta1 before 8.1.4.1; before 8.0.5.2

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59> (web)
- <https://github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425> (web)
- <https://github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a> (web)
- <https://github.com/rails/rails/releases/tag/v8.0.5.2> (web)
- <https://github.com/rails/rails/releases/tag/v8.1.4.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126078> (advisory)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/GHSA-v6rj-xm57-3p59.yml> (web)

## Sources

- CVE List: [CVE-2026-126078](https://www.cve.org/CVERecord?id=CVE-2026-126078), CVE Terms of Use, modified 2026-11-12
- GitHub Advisory Database: [GHSA-v6rj-xm57-3p59](https://github.com/advisories/GHSA-v6rj-xm57-3p59), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126078](https://nvd.nist.gov/vuln/detail/CVE-2026-126078), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-126078 · Whole record: https://cve.day/CVE-2026-126078.json · Rebuilt by cve.day 2026-11-25T22:59:50.275Z
