CVE-2026-126070

NameCVE-2026-126070
DescriptionAction 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6669-1
Debian Bugs1154301

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rails (PTS)bookworm2:6.1.7.10+dfsg-1~deb12u2fixed
bookworm (security)2:6.1.7.10+dfsg-1~deb12u4fixed
trixie2:7.2.2.2+dfsg-2~deb13u2vulnerable
trixie (security)2:7.2.2.2+dfsg-2~deb13u3fixed
forky, sid2:7.2.4+dfsg-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
railssourcebookworm(not affected)
railssourcetrixie2:7.2.2.2+dfsg-2~deb13u3DSA-6669-1
railssource(unstable)2:7.2.4+dfsg-31154301

Notes

[bookworm] - rails <not-affected> (Vulnerable code introduced later)
https://github.com/rails/rails/security/advisories/GHSA-rq8q-p985-fjq7
Introduced by: https://github.com/rails/rails/commit/5f8f6764d8632c5b63635e6520278c3e80716fc7 (v7.1.0)

Search for package or bug name: Reporting problems