{"id":"CVE-2019-15587","published":"2019-10-22T20:07:47Z","modified":"2024-08-05T00:49:13Z","title":"In the Loofah gem for Ruby through v2.3.0 unsanitized JavaScript may occur in sanitized output when a crafted SVG…","vendor":null,"product":null,"tier":"tail","description":{"text":"In the Loofah gem for Ruby through v2.3.0 unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01561,"percentile":0.75852,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://hackerone.com/reports/709009","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/issues/171","tags":["x_refsource_CONFIRM"]},{"url":"https://www.debian.org/security/2019/dsa-4554","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.netapp.com/advisory/ntap-20191122-0003/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4WK2UG7ORKRQOJ6E4XJ2NVIHYJES6BYZ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XMCWPLYPNIWYAY443IZZJ4IHBBLIHBP5/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://usn.ubuntu.com/4498-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":15.17}]},"affectedVersions":[{"vendor":"n/a","product":"Loofah (rubygem)","versions":["Fixed in v2.3.1"]}],"affected":[{"ecosystem":"RubyGems","package":"loofah","vulnerableRanges":["<2.3.1"],"patched":["2.3.1"],"from":["GHSA-c3gv-9cxf-6f57"],"provenance":"source"}],"summary":{"text":"The flaw is an improper neutralization of input during web page generation (cross-site scripting) in the Loofah gem for Ruby, affecting versions through v2.3.0, where unsanitized JavaScript can appear in sanitized output. An attacker who supplies a crafted SVG element that is later republished can get script into the output.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:01Z"},"euvd":{"id":"EUVD-2019-0741","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-flavorjones-loofah-cve-2018-16468","children":[{"from":"CVE-2019-15587","to":"CVE-2022-23515","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/loofah/html5/safelist.rb"],"commits":["https://github.com/flavorjones/loofah/commit/0c6617af440879ce97440f6eb6c58636456dc8ec","https://github.com/flavorjones/loofah/commit/415677f3cf7f9254f42f811e784985cd63c7407f"],"basis":"shared function","functions":["SafeList"]}]}],"packageHistory":[{"cve":"CVE-2018-8048","published":"2018-03-27","fixed":"2.2.1","kev":false},{"cve":"CVE-2018-16468","published":"2018-10-30","fixed":"2.2.3","kev":false,"link":{"from":"CVE-2018-16468","to":"CVE-2019-15587","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:loofah","fromFixed":"2.2.3","toFixed":"2.3.1","daysApart":357},{"kind":"similar","provenance":"machine","score":1.0,"basis":"same package + description similarity"}]}},{"cve":"CVE-2019-15587","published":"2019-10-22","fixed":"2.3.1","kev":false},{"cve":"CVE-2022-23514","published":"2022-12-14","fixed":"2.19.1","kev":false},{"cve":"CVE-2022-23515","published":"2022-12-14","fixed":"2.19.1","kev":false},{"cve":"CVE-2022-23516","published":"2022-12-14","fixed":"2.19.1","kev":false}],"package":"RubyGems:loofah"}}