{"id":"CVE-2024-26143","published":"2024-02-27T15:33:54Z","modified":"2025-02-13T17:41:06Z","title":"Rails Possible XSS Vulnerability in Action Controller","vendor":"rails","product":"rails","tier":"tail","description":{"text":"Rails is a web-application framework. There is a possible XSS vulnerability when using the translation helpers in Action Controller. Applications using translation methods like translate, or t on a controller, with a key ending in \"_html\", a :default key which contains untrusted user input, and the resulting string is used in a view, may be susceptible to an XSS vulnerability. The vulnerability is fixed in 7.1.3.1 and 7.0.8.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01202,"percentile":0.68103,"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-9822-6m93-xqf4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cc","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9e","tags":["x_refsource_MISC"]},{"url":"https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947","tags":["x_refsource_MISC"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20240510-0004/","tags":[]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":13.62},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"rails","versions":[">= 7.0.0, < 7.0.8.1",">= 7.1.0, < 7.1.3.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-29T18:24:49.795683Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":[">=7.0.0, <7.0.8.1",">=7.1.0, <7.1.3.1"],"patched":["7.0.8.1","7.1.3.1"],"from":["GHSA-9822-6m93-xqf4"],"provenance":"source"},{"ecosystem":"RubyGems","package":"rails","vulnerableRanges":[">=7.0.0, <7.0.8.1",">=7.1.0, <7.1.3.1"],"patched":["7.0.8.1","7.1.3.1"],"from":["GHSA-9822-6m93-xqf4"],"provenance":"source"}],"summary":{"text":"Rails' Action Controller translation helpers (translate and t on a controller) contain a possible cross-site scripting flaw that affects the rails product. An attacker can inject script through untrusted input supplied as the :default option for a translation key ending in \"_html\" when the resulting string is rendered in a view, and exploitation requires that a user interacts with the affected page (network access, no authentication).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:16Z"},"euvd":{"id":"EUVD-2024-0589","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-22797","published":"2023-02-09","fixed":"7.0.4.1","kev":false},{"cve":"CVE-2023-28362","published":"2025-01-09","fixed":"7.0.5.1","kev":false},{"cve":"CVE-2024-26142","published":"2024-02-27","fixed":"7.1.3.1","kev":false},{"cve":"CVE-2024-26143","published":"2024-02-27","fixed":"7.1.3.1","kev":false},{"cve":"CVE-2024-28103","published":"2024-06-04","fixed":"7.2.0.beta2","kev":false,"link":{"from":"CVE-2024-26143","to":"CVE-2024-28103","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"7.0.8.1","toFixed":"7.0.8.4","daysApart":98}]}},{"cve":"CVE-2024-41128","published":"2024-10-16","fixed":"7.2.1.1","kev":false},{"cve":"CVE-2024-47887","published":"2024-10-16","fixed":"7.2.1.1","kev":false}],"package":"RubyGems:actionpack"}}