VDB
Sign up
HIGH7.5

GHSA-qp49-3pvw-x4m5

sinatra does not validate expanded path matches

Quick fix

GHSA-qp49-3pvw-x4m5 — sinatra: upgrade to the fixed version with the command below.

bundle update sinatra

Details

Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/sinatra
Introduced in: 0Fixed in: 2.2.0
Fixbundle update sinatra

References