{"id":"CVE-2019-18978","aliases":["GHSA-pf8f-w267-mq2h"],"url":"https://o3.security/vulnerability/CVE-2019-18978","summary":"The rack-cors rubygem may allow directory traveral","details":"An issue was discovered in the rack-cors (aka Rack CORS Middleware) gem before 1.0.4 for Ruby. It allows ../ directory traversal to access private resources because resource matching does not ensure that pathnames are in a canonical format.","published":"2019-11-14T21:15:12.170Z","modified":"2026-07-08T05:54:58.136733321Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"rack-cors","fixedVersion":"1.0.4"}],"fix":{"url":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d","label":"cyu/rack-cors@e4d4fc3"},"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4571-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-4918"},{"type":"FIX","url":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d"},{"type":"FIX","url":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-18978"},{"type":"PACKAGE","url":"https://github.com/cyu/rack-cors"},{"type":"WEB","url":"https://usn.ubuntu.com/4571-1"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T05:54:58.136733321Z"}}