All reports
Medium

The rack-cors rubygem may allow directory traveral

Affected versions

RubyGemsrack-cors
Affected versions
< 1.0.4
Fixed version
1.0.4

Exploitation

CVE-2019-18978

Probability of exploitation in the next 30 days: 2.46%

FIRST EPSS · 2026-11-21

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.

Links