What’s Vulnerable › Vulnerabilities

CVE-2019-18978: The rack-cors rubygem may allow directory traveral

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.

Affected products

How to fix

Upgrade to a fixed version: Rack-Cors Project Rack-Cors 1.0.4; Rubygems Rack-Cors 1.0.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2019-18978 or the next vulnerability affects your stack