Live threats

All CVEs / Rack-cors Project

CVE-2019-18978Rack-cors Project Rack-cors

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
2.5%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Nov 14, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rack-cors.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems rack-cors < 1.0.4 1.0.4 gem "rack-cors", ">= 1.0.4"

Per OSV / GitHub Advisories (GHSA-pf8f-w267-mq2h). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rack-cors_projectrack-cors< 1.0.4
debiandebian_linux8.0
debiandebian_linux9.0
debiandebian_linux10.0
canonicalubuntu_linux16.04

Official sources

References

Links published by the sources. Open them with care.