Advisory

GHSA-pf8f-w267-mq2h

Also known as: CVE-2019-18978

Summary

The rack-cors rubygem may allow directory traveral

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2019-11-15 20:26 UTC
Modified
2024-02-16 08:21 UTC

Affected packages and fixes

rack-cors

RubyGems · All systems

Affected

  • introduced 0, fixed 1.0.4 (ecosystem)

Fixed versions

1.0.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences