PatchSiren cyber security CVE debrief
CVE-2026-126078 rails CVE debrief
A cross-site scripting (XSS) vulnerability exists in the Action View highlight helper of the Rails framework. This issue allows an attacker to inject malicious code into the application when a user-controlled input is passed to the highlight function with a custom highlighter that places a placeholder inside an attribute value. The vulnerability arises because the highlight helper substitutes each matched phrase into the :highlighter string without escaping it, and returns the result marked HTML-safe. As a result, if the highlighter string is not properly sanitized, an attacker could end the attribute value and add attributes to the element, potentially leading to XSS. Applications
- Vendor
- rails
- Product
- Unknown
- CVSS
- MEDIUM 6.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-10
- Original CVE updated
- 2026-11-12
- Advisory published
- 2026-11-10
- Advisory updated
- 2026-11-12
Who should care
Defenders responsible for maintaining and securing Rails applications using the Action View framework should be aware of this vulnerability and take necessary actions to prevent potential attacks. This includes upgrading to patched versions, validating user-controlled inputs, and implementing input validation and sanitization measures.
Why it matters
The XSS vulnerability in the Action View highlight helper requires defenders to take action to prevent potential attacks. This includes upgrading to patched versions, validating user-controlled inputs, and implementing input validation and sanitization measures to protect against unauthorized code execution or data theft.
- Potential for unauthorized code execution or data theft due to XSS vulnerability
- Need for input validation and sanitization to prevent XSS attacks
- Potential impact on application security and user trust if left unpatched
Technical summary
The Action View highlight helper is vulnerable to a cross-site scripting (XSS) attack when a custom highlighter is used with user-controlled input. This allows an attacker to inject malicious code into the application, potentially leading to unauthorized actions or data theft. The vulnerability exists because the highlight helper does not properly escape user-controlled input when substituting it into the :highlighter string. As a result, an attacker could inject malicious code into the application, potentially leading to XSS. To exploit this vulnerability, an attacker would need to provide user-controlled input that is passed to the highlight function with a custom highlighter that places a placeholder inside
Defensive priority
Defenders should prioritize upgrading to versions 8.1.4.1 or 8.0.5.2, or applying patches to fix the XSS vulnerability in the Action View highlight helper. They should also review and validate user-controlled inputs to prevent potential attacks.
Recommended defensive actions
- Upgrade to versions 8.1.4.1 or 8.0.5.2, or apply patches to fix the XSS vulnerability
- Review and validate user-controlled inputs to prevent potential attacks
- Implement input validation and sanitization to prevent XSS attacks
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The CVE record and source item provide details about the XSS vulnerability in the Action View highlight helper. The vulnerability exists when a custom highlighter is used with user-controlled input, potentially allowing an attacker to inject malicious code.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-126078 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-126078
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-126078 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-126078
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Action View: Possible XSS vulnerability in Action View highlight helper
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/126xxx/CVE-2026-126078.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59
Supplemental source - x_refsource_CONFIRM
-
Source reference
Unverified legacy reference
URL: https://github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425
Supplemental source - x_refsource_MISC
-
Source reference
Unverified legacy reference
URL: https://github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a
Supplemental source - x_refsource_MISC
-
Source reference
Unverified legacy reference
URL: https://github.com/rails/rails/releases/tag/v8.0.5.2
Supplemental source - x_refsource_MISC
-
Source reference
Unverified legacy reference
URL: https://github.com/rails/rails/releases/tag/v8.1.4.1
Supplemental source - x_refsource_MISC
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.