Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
{
"github_reviewed": true,
"cwe_ids": [
"CWE-22",
"CWE-426"
],
"github_reviewed_at": "2022-05-03T20:59:50Z",
"nvd_published_at": "2022-05-02T05:15:00Z",
"severity": "HIGH"
}