{"id":"CVE-2026-33168","published":"2026-03-23T23:01:22Z","modified":"2026-03-24T13:36:44Z","title":"Rails has a possible XSS vulnerability in its Action View tag helpers","vendor":"rails","product":"actionview","tier":"tail","description":{"text":"Action View provides conventions and helpers for building web pages with the Rails framework. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, when a blank string is used as an HTML attribute name in Action View tag helpers, the attribute escaping is bypassed, producing malformed HTML. A carefully crafted attribute value could then be misinterpreted by the browser as a separate attribute name, possibly leading to XSS. Applications that allow users to specify custom HTML attributes are affected. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01029,"percentile":0.62858,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-v55j-83pf-r9cq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails/commit/0b6f8002b52b9c606fd6be9e7915d9f944cf539c","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/63f5ad83edaa0b976f82d46988d745426aa4a42d","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/c79a07df1e88738df8f68cb0ee759ad6128ca924","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v7.2.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v8.0.4.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v8.1.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":12.57},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"actionview","versions":[">= 8.1.0.beta1, < 8.1.2.1",">= 8.0.0.beta1, < 8.0.4.1","< 7.2.3.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-24T13:36:28.555604Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"actionview","vulnerableRanges":[">=8.1.0.beta1, <8.1.2.1",">=8.0.0.beta1, <8.0.4.1","<7.2.3.1"],"patched":["8.1.2.1","8.0.4.1","7.2.3.1"],"from":["GHSA-v55j-83pf-r9cq"],"provenance":"source"}],"summary":{"text":"The Action View tag helpers in the Rails framework (actionview) contain a flaw where passing a blank string as an HTML attribute name bypasses attribute escaping and produces malformed HTML, which can lead to cross-site scripting. An attacker can exploit this over the network with low complexity, requiring a victim to interact with the page, and it applies to applications that let users specify custom HTML attributes.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:54Z"},"euvd":{"id":"EUVD-2026-14616","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rails-actionview-cve-2022-27777","parents":[{"from":"CVE-2022-27777","to":"CVE-2026-33168","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["actionview/lib/action_view/helpers/tag_helper.rb"],"commits":["https://github.com/rails/rails/commit/649516ce0feb699ae06a8c5e81df75d460cc9a85","https://github.com/rails/rails/commit/0b6f8002b52b9c606fd6be9e7915d9f944cf539c","https://github.com/rails/rails/commit/63f5ad83edaa0b976f82d46988d745426aa4a42d"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2020-15169","published":"2020-09-11","fixed":"6.0.3.3","kev":false},{"cve":"CVE-2022-27777","published":"2022-05-26","fixed":"7.0.2.4","kev":false},{"cve":"CVE-2023-23913","published":"2025-01-09","fixed":"7.0.4.3","kev":false,"link":{"from":"CVE-2023-23913","to":"CVE-2026-33168","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionview","fromFixed":"7.0.4.3","toFixed":"7.2.3.1","daysApart":438}]}},{"cve":"CVE-2026-33168","published":"2026-03-23","fixed":"8.1.2.1","kev":false},{"cve":"CVE-2026-126069","published":"2026-11-10","fixed":"8.1.4.1","kev":false},{"cve":"CVE-2026-126070","published":"2026-11-10","fixed":"8.1.4.1","kev":false},{"cve":"CVE-2026-126078","published":"2026-11-10","fixed":"8.1.4.1","kev":false}],"package":"RubyGems:actionview"}}