{"schema_version":"1.9.0","id":"CVE-2020-5267","published":"2020-03-19T18:15:16.023Z","modified":"2026-09-09T03:30:49.454398178Z","aliases":["GHSA-65cv-r6x7-79hv"],"related":["SUSE-SU-2020:0954-1","SUSE-SU-2020:1178-1","SUSE-SU-2020:3036-1","SUSE-SU-2020:3147-1","SUSE-SU-2020:3160-1","openSUSE-SU-2020:0627-1","openSUSE-SU-2020:1993-1","openSUSE-SU-2020:2000-1","openSUSE-SU-2024:11321-1","openSUSE-SU-2024:11823-1"],"details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rails/rails","events":[{"introduced":"0"},{"fixed":"4dcc5435e9569e084f6f90fcea6e7c37d7bd2b4d"},{"introduced":"66cabeda2c46c582d19738e1318be8d59584cc5b"},{"fixed":"157920aead96865e3135f496c09ace607d5620dc"},{"introduced":"dd8f7185faeca6ee968a6e9367f6d8601a83b8db"},{"last_affected":"dd8f7185faeca6ee968a6e9367f6d8601a83b8db"},{"fixed":"033a738817abd6e446e1b320cb7d1a5c15224e9a"}],"database_specific":{"cpe":["cpe:2.3:a:rubyonrails:actionview:*:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"fixed":"5.2.4.2"},{"introduced":"6.0.0"},{"fixed":"6.0.2.2"},{"introduced":"8.0"},{"last_affected":"8.0"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"]}}],"versions":["8.0","v8.0.0","v6.0.2.1","v5.2.4.1","v6.0.2","v5.2.4","v6.0.2.rc2","v5.2.4.rc1","v6.0.2.rc1","v6.0.0","v6.0.0.beta2","v6.0.0.beta1","v5.2.1.rc1","v5.2.0.rc1","v5.1.0.beta1","v5.0.0.beta4","v5.0.0.beta2","v5.0.0.beta1","v4.2.0.beta1","v4.0.0.rc1","v4.0.0.beta1","v3.2.0.rc1","v3.1.0.rc1","v3.1.0.beta1","v3.0.0.beta3","v3.0.0.beta.3","v2.0.1","v2.0.0","v2.0.0_RC2","v2.0.0_RC1","v2.0.0_PR","v1.1.1","v1.1.0","v1.1.0_RC1","v0.14.3","v0.14.1","v0.13.1","v0.13.0","v0.12.0","v0.11.1","v0.11.0","v0.10.1","v0.10.0","v0.9.5","v0.9.4.1","v0.9.4","v0.9.3","v0.9.2","v0.9.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-5267.json"}}],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XJ7NUWXAEVRQCROIIBV4C6WXO6IR3KSB/"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00019.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00022.html"},{"type":"FIX","url":"http://www.openwall.com/lists/oss-security/2020/03/19/1"},{"type":"FIX","url":"https://github.com/rails/rails/commit/033a738817abd6e446e1b320cb7d1a5c15224e9a"},{"type":"FIX","url":"https://github.com/rails/rails/security/advisories/GHSA-65cv-r6x7-79hv"}],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"33"},{"last_affected":"33"}],"source":"CPE_STRING","vendor_product":"fedoraproject:fedora"},{"cpes":["cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"15.1"},{"last_affected":"15.1"}],"source":"CPE_STRING","vendor_product":"opensuse:leap"}]},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"}]}