# CVE-2020-5267: Possible XSS vulnerability in ActionView

- Severity: Medium 4.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/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.52%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-03-19T17:30:16.000Z
- Modified: 2026-07-08T06:29:58.117Z
- Also known as: GHSA-65cv-r6x7-79hv
- Weaknesses: CWE-79, CWE-80
- Assigned by: GitHub_M

## Description

In ActionView before versions 6.0.2.2 and 5.2.4.2, there is a possible XSS vulnerability in ActionView's JavaScript literal escape helpers. Views that use the `j` or `escape_javascript` methods may be susceptible to XSS attacks. The issue is fixed in versions 6.0.2.2 and 5.2.4.2.

(As written by CVE List.)

## Affected

- rails actionview: < 5.2.4.2; >= 6.0.0, < 6.0.2.2
- actionview (RubyGems): before 5.2.4.2; from 6.0.0 before 6.0.2.2
- rubyonrails actionview: before 5.2.4.2; from 6.0.0 before 6.0.2.2
- debian debian_linux: 8.0
- fedoraproject fedora: 33
- opensuse leap: 15.1

## Every score

- GitHub_M: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/rails/rails/security/advisories/GHSA-65cv-r6x7-79hv> (exploit, patch, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2020/03/19/1> (exploit, mailing-list, patch, third-party-advisory, web)
- <https://github.com/rails/rails/commit/033a738817abd6e446e1b320cb7d1a5c15224e9a> (patch, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/03/msg00022.html> (mailing-list, third-party-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00019.html> (mailing-list, third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XJ7NUWXAEVRQCROIIBV4C6WXO6IR3KSB/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5267> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2020-5267.yml> (web)
- <https://groups.google.com/forum/#!topic/rubyonrails-security/55reWMM_Pg8> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XJ7NUWXAEVRQCROIIBV4C6WXO6IR3KSB> (web)

## Sources

- CVE List: [CVE-2020-5267](https://www.cve.org/CVERecord?id=CVE-2020-5267), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-65cv-r6x7-79hv](https://github.com/advisories/GHSA-65cv-r6x7-79hv), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-5267](https://nvd.nist.gov/vuln/detail/CVE-2020-5267), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5267 · Whole record: https://cve.day/CVE-2020-5267.json · Rebuilt by cve.day 2026-11-25T22:57:51.579Z
