Home / rails / actionview / CVE-2020-5267
CVE-2020-5267: is it exploited, and which versions of rails actionview are affected and fixed?
CVE-2020-5267 is a cross-site scripting (XSS) vulnerability in rails actionview. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: actionview before 5.2.4.2 and actionview from 6.0.0 before 6.0.2.2 (GitHub advisory GHSA-65cv-r6x7-79hv). Fixed in 5.2.4.2 and 6.0.2.2 (GitHub advisory GHSA-65cv-r6x7-79hv). Severity: Medium (4.0, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:12 UTC.
What is CVE-2020-5267?
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.
From the CVE record by GitHub_M, last updated August 4, 2024, 08:22 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| rails | actionview | < 5.2.4.2 >= 6.0.0, < 6.0.2.2 |
As the CVE record by GitHub_M states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | actionview | < 5.2.4.2 | 5.2.4.2 | GHSA-65cv-r6x7-79hv |
| RubyGems | actionview | >= 6.0.0, < 6.0.2.2 | 6.0.2.2 | GHSA-65cv-r6x7-79hv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 3, 2023. Summary: Cross site scripting vulnerability in ActionView.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| rubyonrails | actionview | before 5.2.4.2 | application |
| rubyonrails | actionview | from 6.0.0 before 6.0.2.2 | application |
| debian | debian linux | 8.0 | operating system |
| fedoraproject | fedora | 33 | operating system |
| opensuse | leap | 15.1 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 03:21 UTC.
How severe is CVE-2020-5267?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N | GitHub_M |
| Medium 4.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N | NVD |
| Low 3.5 | CVSS 2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2020-5267 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.52% probability of exploitation activity in the next 30 days, percentile 75.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://github.com/rails/rails/security/advisories/GHSA-65cv-r6x7-79hv x_refsource_CONFIRM
- https://github.com/rails/rails/commit/033a738817abd6e446e1b320cb7d1a5c15224e9a x_refsource_MISC
- [oss-security] 20200319 [CVE-2020-5267] Possible XSS vulnerability in ActionView mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20200320 [SECURITY] [DLA 2149-1] rails security update mailing-list, x_refsource_MLIST
- openSUSE-SU-2020:0627 vendor-advisory, x_refsource_SUSE
- FEDORA-2020-4dd34860a3 vendor-advisory, x_refsource_FEDORA
When was it published, and where is the official record?
- Reserved
- January 2, 2020
- Published
- March 19, 2020, 17:30 UTC
- CVE record updated
- August 4, 2024, 08:22 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 03:21 UTC
- Last checked
- CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:12 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect actionview?
- Mar 23, 2026CVE-2026-33168 rails actionview: cross-site scripting (XSS)
- Sep 11, 2020CVE-2020-15169 rails actionview: cross-site scripting (XSS)
Questions about CVE-2020-5267
Is CVE-2020-5267 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 1.52% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of rails actionview are affected by CVE-2020-5267?
actionview before 5.2.4.2 and actionview from 6.0.0 before 6.0.2.2, per the GitHub advisory GHSA-65cv-r6x7-79hv. The tables above give every range the sources list.
Which version fixes CVE-2020-5267?
5.2.4.2 and 6.0.2.2, per the GitHub advisory GHSA-65cv-r6x7-79hv. Check the vendor's advisory before you rely on it.
How severe is CVE-2020-5267?
Medium (4.0, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2020-5267?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.