sinatra does not validate expanded path matches
High severity
GitHub Reviewed
Published
May 3, 2022
to the GitHub Advisory Database
•
Updated Nov 4, 2025
Description
Published by the National Vulnerability Database
May 2, 2022
Published to the GitHub Advisory Database
May 3, 2022
Reviewed
May 3, 2022
Last updated
Nov 4, 2025
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
References