{
  "id": "cve-2026-126078",
  "title": "Rails Action View highlight can turn attacker-controlled text into HTML attributes",
  "product": "Ruby on Rails Action View",
  "ai_system": "Anthropic OSS Scanner (model unspecified)",
  "organization": "Anthropic and Rails maintainers",
  "summary": "ActionView::Helpers::TextHelper#highlight inserts a matched phrase into a caller-provided :highlighter string without escaping it, then marks the result HTML-safe. If an application places a placeholder inside a quoted HTML attribute and highlights attacker-controlled text, the match can escape the attribute and add attributes, potentially causing XSS. The default <mark>\u0001</mark> highlighter and block form are not affected.",
  "ai_role": "The Rails advisory explicitly says the issue was found by the Anthropic OSS Scanner, identifier ANT-2026-THHUJQVO. 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-v6rj-xm57-3p59 on 2026-11-04 and lists CVE-2026-126078. The advisory conditions impact on a custom highlighter and user-controlled text; no exploitation claim is made.",
  "cves": [
    "CVE-2026-126078"
  ],
  "source_url": "https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59",
  "ai_source_url": "https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59",
  "remediation": "fix documented",
  "remediation_note": "The advisory lists Action View 8.0.5.2 and 8.1.4.1 as patched and provides patches. A workaround is to use a highlighter that places matched text only in element content, such as the default highlighter.",
  "advisory_url": "https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-126078",
      "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-126078.json",
      "source_name": "GitHub_M (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-126078"
      ],
      "consequences": [
        "code execution"
      ],
      "conditions": "Because sanitizing leaves quote characters in text unescaped, a match substituted into a quoted attribute value of the highlighter, such as the <a href=\"search?q=\\1\"> form shown in the method's documentation, could end the attribute value and add attributes to the element, possibly leading to XSS. Applications are affected when they pass a :highlighter that places a placeholder inside an attribute value and highlight text or phrases that a user controls. The default <mark>\\1</mark> highlighter and the block form are not 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-126078.json",
      "checked_date": "2026-11-16"
    }
  ]
}
