# CVE-2024-26143: Rails Possible XSS Vulnerability in Action Controller

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2024-02-27T15:33:54.643Z
- Modified: 2026-06-17T07:17:11.337Z
- Also known as: GHSA-9822-6m93-xqf4, BIT-RAILS-2024-26143
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rails rails: >= 7.0.0, < 7.0.8.1; >= 7.1.0, < 7.1.3.1
- actionpack (RubyGems): from 7.0.0 before 7.0.8.1; from 7.1.0 before 7.1.3.1
- rails (RubyGems): from 7.0.0 before 7.0.8.1; from 7.1.0 before 7.1.3.1
- rubyonrails rails: from 7.0.0 before 7.0.8.1; from 7.1.0 before 7.1.3.1
- rails (Bitnami): from 7.0.0 before 7.0.9; from 7.1.0 before 7.1.4

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4> (exploit, vendor-advisory, web)
- <https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947> (exploit, vendor-advisory, web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml> (exploit, third-party-advisory, web)
- <https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cc> (patch, web)
- <https://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9e> (patch, web)
- <https://security.netapp.com/advisory/ntap-20240510-0004/> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-26143> (advisory, web)
- <https://github.com/rails/rails> (package)
- <https://security.netapp.com/advisory/ntap-20240510-0004> (web)

## Sources

- CVE List: [CVE-2024-26143](https://www.cve.org/CVERecord?id=CVE-2024-26143), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-9822-6m93-xqf4](https://github.com/advisories/GHSA-9822-6m93-xqf4), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2024-26143](https://nvd.nist.gov/vuln/detail/CVE-2024-26143), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-RAILS-2024-26143](https://osv.dev/vulnerability/BIT-RAILS-2024-26143), Apache-2.0, modified 2025-05-20

---

Page: https://cve.day/CVE-2024-26143 · Whole record: https://cve.day/CVE-2024-26143.json · Rebuilt by cve.day 2026-11-25T22:58:37.084Z
