{"id":"CVE-2020-5267","published":"2020-03-19T17:30:16Z","modified":"2024-08-04T08:22:09Z","title":"Possible XSS vulnerability in ActionView","vendor":"rails","product":"actionview","tier":"core","eol":null,"affectedVersions":[{"vendor":"rails","product":"actionview","versions":["< 5.2.4.2",">= 6.0.0, < 6.0.2.2"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01525,"percentile":0.74598,"date":"2026-10-29","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-65cv-r6x7-79hv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails/commit/033a738817abd6e446e1b320cb7d1a5c15224e9a","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2020/03/19/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00022.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00019.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XJ7NUWXAEVRQCROIIBV4C6WXO6IR3KSB/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"techniques":[{"id":"T1059","name":"Command and Scripting Interpreter","tactics":["execution"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"primary_impact","evidence":[],"confidence":"high"},{"id":"T1185","name":"Browser Session Hijacking","tactics":["collection"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"secondary_impact","evidence":[],"confidence":"high"}],"reports":[],"affected":[{"ecosystem":"RubyGems","package":"actionview","vulnerableRanges":["<5.2.4.2",">=6.0.0, <6.0.2.2"],"patched":["5.2.4.2","6.0.2.2"],"from":["GHSA-65cv-r6x7-79hv"],"provenance":"source"}],"advisories":[{"id":"GHSA-65cv-r6x7-79hv","url":"https://github.com/advisories/GHSA-65cv-r6x7-79hv","severity":"MODERATE","ecosystem":"RubyGems","package":"actionview","vulnerableRanges":["<5.2.4.2"],"patched":["5.2.4.2"],"provenance":"source","from":"GHSA"},{"id":"GHSA-65cv-r6x7-79hv","url":"https://github.com/advisories/GHSA-65cv-r6x7-79hv","severity":"MODERATE","ecosystem":"RubyGems","package":"actionview","vulnerableRanges":[">=6.0.0, <6.0.2.2"],"patched":["6.0.2.2"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2020-0332","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-0332","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2020-03-23","earliestUrl":"https://github.com/GUI/legacy-rails-CVE-2020-5267-patch","repos":[{"name":"GUI/legacy-rails-CVE-2020-5267-patch","url":"https://github.com/GUI/legacy-rails-CVE-2020-5267-patch","stars":1,"created":"2020-03-23"}]},"first":{"date":"2020-03-23","source":"PoC-in-GitHub","url":"https://github.com/GUI/legacy-rails-CVE-2020-5267-patch"},"provenance":"source"},"exploitRefs":[],"flow":[{"stage":"primary","techniques":["T1059"],"provenance":"source"},{"stage":"secondary","techniques":["T1185"],"provenance":"source"}],"timeline":[{"date":"2020-03-19","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2020-5267","provenance":"source"},{"date":"2020-03-23","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/GUI/legacy-rails-CVE-2020-5267-patch","provenance":"source"}],"speed":{"daysToPublicExploit":4,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":22.7,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":14.92,"detail":"percentile 0.7460"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":2.8,"detail":"base score 4"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2016-6316","published":"2016-09-07","fixed":"5.0.0.1","kev":false},{"cve":"CVE-2019-5418","published":"2019-03-27","fixed":"5.2.2.1","kev":true,"link":{"from":"CVE-2019-5418","to":"CVE-2020-5267","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionview","fromFixed":"5.2.2.1","toFixed":"5.2.4.2","daysApart":358}]}},{"cve":"CVE-2019-5419","published":"2019-03-27","fixed":"6.0.0.beta3","kev":false},{"cve":"CVE-2020-5267","published":"2020-03-19","fixed":"6.0.2.2","kev":false},{"cve":"CVE-2020-8167","published":"2020-06-19","fixed":"6.0.3.1","kev":false,"link":{"from":"CVE-2020-5267","to":"CVE-2020-8167","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionview","fromFixed":"5.2.4.2","toFixed":"5.2.4.3","daysApart":92},{"kind":"version-step","provenance":"source","package":"RubyGems:actionview","fromFixed":"6.0.2.2","toFixed":"6.0.3.1","daysApart":92}]}},{"cve":"CVE-2020-15169","published":"2020-09-11","fixed":"6.0.3.3","kev":false},{"cve":"CVE-2022-27777","published":"2022-05-26","fixed":"7.0.2.4","kev":false}],"package":"RubyGems:actionview"}}