Finding and attribution
With the default HTML5 sanitizer on supported CRuby configurations and Nokogiri earlier than 1.19.5, unescaped angle brackets inside sanitized attribute values can become live markup when Action View highlight splits the sanitized HTML on tags or simple_format splits it on blank lines. Applications passing untrusted text to highlight or to simple_format with html_options are affected.
Product: Ruby on Rails Action View and rails-html-sanitizer. AI system: Anthropic OSS Scanner (model unspecified). Team / organization: Anthropic and Rails maintainers.
CVE identifiers: CVE-2026-126079.
AI and human contribution (source account): The Rails advisory says a human researcher also reported the issue and explicitly says it was also found by the Anthropic OSS Scanner, identifier ANT-2026-RTK47OH0. Anthropic’s primary OSS Scanner announcement says its reports are fully model-generated and generated by its strongest models, including Claude Mythos; the individual advisory does not identify the model or scanner workflow version.
Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.
Discovery context: The maintainer published GHSA-2p2f-4rq4-gjwc on 2026-11-04 and lists CVE-2026-126079. The advisory documents specific sanitizer, dependency, and helper conditions; no exploitation claim is made.
Remediation status: fix documented. The advisory says the Rails patches require rails-html-sanitizer 1.7.2 or later, which requires Loofah 2.25.3 and Nokogiri 1.19.5; upgrading Nokogiri or using the HTML4 sanitizer are workarounds.
A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.
Disclosed 4 Nov 2026. AI attribution dated 4 Nov 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.
Recorded CVSS: Medium · highest recorded score 6.1. Documented technical effects: code execution.
Severity, consequences and exploitation evidence
Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.
- CVE-2026-126079: 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_M (CNA; CVE Program record) · checked 16 Nov 2026.
CVE-2026-126079: code execution.
Prerequisites / affected scope: An unescaped > or a blank line inside an attribute value could cause markup in that value, which the sanitizer left inert, to be emitted as live elements in the helper's html_safe output, possibly leading to XSS. Applications that use the HTML5 sanitizer and pass untrusted text to highlight, or to simple_format with html_options, are affected..
Exploitation evidence: The cited source does not state whether this issue was exploited in the wild.. Impact source · checked 16 Nov 2026.
Documented fix: The advisory says the Rails patches require rails-html-sanitizer 1.7.2 or later, which requires Loofah 2.25.3 and Nokogiri 1.19.5; upgrading Nokogiri or using the HTML4 sanitizer are workarounds.