# CVE-2026-126070: Action View: Possible XSS vulnerability in Action View strip_tags

- 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.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-11-10T20:38:50.694Z
- Modified: 2026-11-12T23:45:03.332Z
- Also known as: GHSA-rq8q-p985-fjq7
- 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, 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.

(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-rq8q-p985-fjq7> (web)
- <https://github.com/rails/rails/commit/568b19cb860322885593e308a7f27aceb779e9d7> (web)
- <https://github.com/rails/rails/commit/c3772a10f405f9644125cbb484adfd2aa7a25a59> (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-126070> (advisory)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/GHSA-rq8q-p985-fjq7.yml> (web)

## Sources

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

---

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