{"cve":"CVE-2019-18978","nvd":{"published":"2019-11-14T21:15:12.170","modified":"2026-06-17T02:25:39.227","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-22"],"references":["https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d","https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4","https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html","https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html","https://usn.ubuntu.com/4571-1/"],"products":["canonical:ubuntu_linux","debian:debian_linux","rack-cors_project:rack-cors"],"source":"nvd","synced_at":"2026-10-19T20:59:25.448946135+00:00"},"epss":{"cve":"CVE-2019-18978","score":0.02462,"percentile":0.84465,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-pf8f-w267-mq2h","url":"https://osv.dev/vulnerability/GHSA-pf8f-w267-mq2h","summary":"The rack-cors rubygem may allow directory traveral","modified":"2024-02-16T08:21:36.004949Z","packages":[{"ecosystem":"RubyGems","name":"rack-cors","purl":"pkg:gem/rack-cors","ranges":["<1.0.4"],"fixed":["1.0.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}