{
  "id": "cve-2026-126079",
  "title": "Rails Action View text helpers can reactivate markup inside sanitized attributes",
  "product": "Ruby on Rails Action View and rails-html-sanitizer",
  "ai_system": "Anthropic OSS Scanner (model unspecified)",
  "organization": "Anthropic and Rails maintainers",
  "summary": "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.",
  "ai_role": "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.",
  "disclosure_date": "2026-11-04",
  "ai_attribution_date": "2026-11-04",
  "classification": "disclosure",
  "classification_note": "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.",
  "cves": [
    "CVE-2026-126079"
  ],
  "source_url": "https://github.com/rails/rails/security/advisories/GHSA-2p2f-4rq4-gjwc",
  "ai_source_url": "https://github.com/rails/rails/security/advisories/GHSA-2p2f-4rq4-gjwc",
  "remediation": "fix documented",
  "remediation_note": "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.",
  "advisory_url": "https://github.com/rails/rails/security/advisories/GHSA-2p2f-4rq4-gjwc",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-126079",
      "version": "3.1",
      "score": 6.1,
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/126xxx/CVE-2026-126079.json",
      "source_name": "GitHub_M (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-126079"
      ],
      "consequences": [
        "code execution"
      ],
      "conditions": "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": "The cited source does not state whether this issue was exploited in the wild.",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/126xxx/CVE-2026-126079.json",
      "checked_date": "2026-11-16"
    }
  ]
}
