{"affected":[{"product":"rails","source":"CNA: GitHub_M","vendor":"rails","versions":[{"status":"affected","version":"< 8.0.5.2"},{"status":"affected","version":">= 8.1, < 8.1.4.1"}]}],"cveId":"CVE-2026-126078","cwes":["CWE-79"],"description":"Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, ActionView::Helpers::TextHelper#highlight substitutes each matched phrase into the :highlighter string without escaping it and returns the result marked HTML-safe. 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. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.","epss":{"date":"2026-11-12","percentile":0.27574,"score":0.00338},"exploits":[],"kev":null,"metrics":[{"score":6.1,"severity":"medium","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},{"score":6.1,"severity":"medium","source":"NVD: security-advisories@github.com","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}],"modifiedAt":1794506480042,"publishedAt":1794344449416,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/rails/rails/releases/tag/v8.0.5.2"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/rails/rails/releases/tag/v8.1.4.1"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/rails/rails/releases/tag/v8.0.5.2"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/rails/rails/releases/tag/v8.1.4.1"},{"source":"security-advisories@github.com","tags":[],"url":"https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59"}],"remediation":[],"revision":"03de155a1ae5cbe79a9ae601e1caefcb8d0d96e5f72262f8919caef2b70af00d","sources":[{"modifiedAt":1794506480042,"name":"CNA: GitHub_M","retrievedAt":1794507000046,"url":"https://www.cve.org/CVERecord?id=CVE-2026-126078"},{"modifiedAt":1794345566350,"name":"NVD","retrievedAt":1794357165213,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126078"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1794507013323,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-126078"}],"ssvc":{"assessedAt":1794500793272,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"Action View: Possible XSS vulnerability in Action View highlight helper","updatedAt":1794507013323}