cyu/rack-cors

cyu/rack-cors

Releases30
Frequency6 months 5 days
Last Release
Stars3.29K
Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.

CVE History

CVEPublishedCVSS v3CVSS v2
9.1 CRITICAL

rack-cors (aka Rack CORS Middleware) 2.0.1 has 0666 permissions for the .rb files.

5.3 MEDIUM5 MEDIUM

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.

8.8 HIGH6.8 MEDIUM

Missing anchor in generated regex for rack-cors before 0.4.1 allows a malicious third-party site to perform CORS requests. If the configuration were intended to allow only the trusted example.com domain name and not the malicious example.net domain name, then example.com.example.net (as well as example.com-example.net) would be inadvertently allowed.