SB20261203433 - Multiple vulnerabilities in ActionView
Published: December 3, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 vulnerabilities.
1) Cross-site scripting (CVE-ID: CVE-2026-126079)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
The vulnerability allows a remote attacker to execute arbitrary JavaScript in a victim's browser in the context of the affected site.
The vulnerability exists due to improper neutralization of HTML attribute content in Action View's highlight and simple_format helpers when they process HTML as text after HTML5 sanitization. A remote attacker can supply untrusted text that either helper converts from inert attribute content into active markup to execute script when the victim views the page.
2) Cross-site scripting (CVE-ID: CVE-2026-126070)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
The vulnerability allows a remote attacker to execute arbitrary JavaScript in a victim's browser in the context of the affected site.
The vulnerability exists due to improper escaping in Action View's strip_tags helper, which marks output as html_safe without encoding quotation marks, so ERB does not escape them when rendering the output in a quoted HTML attribute. A remote attacker can supply input that alters the page's HTML attributes and causes script execution when a victim views the page.
3) Cross-site scripting (CVE-ID: CVE-2026-126069)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
The vulnerability allows a remote attacker to potentially execute JavaScript in a victim's browser in the context of the affected application.
The vulnerability exists due to improper neutralization of HTML attributes in Action View tag helpers when attribute names are checked for blankness before conversion to strings, including names normalized by asset tag helpers. A remote attacker can supply crafted custom attribute input to trigger cross-site scripting when a victim views the rendered page.
4) Cross-site scripting (CVE-ID: CVE-2026-126078)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
The vulnerability allows a remote attacker to execute scripts in a victim's browser in the affected site's origin.
The vulnerability exists due to improper escaping in ActionView::Helpers::TextHelper#highlight when the helper inserts a match into a quoted HTML attribute in a custom highlighter and marks the result as HTML-safe. A remote attacker can control the highlighted text or search phrase to inject HTML attributes and potentially execute scripts when a victim views the rendered page.
Remediation
Install update from vendor's website.
References
- https://github.com/rails/rails/security/advisories/GHSA-2p2f-4rq4-gjwc
- https://github.com/rails/rails/security/advisories/GHSA-rq8q-p985-fjq7
- https://github.com/rails/rails/security/advisories/GHSA-68p9-83h6-5wpj
- https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59
- https://github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425