Advisory

GHSA-qp49-3pvw-x4m5

Also known as: CVE-2022-29970

Summary

sinatra does not validate expanded path matches

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-03 00:00 UTC
Modified
2025-11-04 19:59 UTC

Affected packages and fixes

sinatra

RubyGems · All systems

Affected

  • introduced 0, fixed 2.2.0 (ecosystem)

Fixed versions

2.2.0

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