Advisory

GHSA-hxx2-7vcw-mqr3

Also known as: CVE-2024-21510

Summary

Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision

Details

Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the X-Forwarded-Host (XFH) header. When making a request to a method with redirect applied, it is possible to trigger an Open Redirect Attack by inserting an arbitrary address into this header. If used for caching purposes, such as with servers like Nginx, or as a reverse proxy, without handling the X-Forwarded-Host header, attackers can potentially exploit Cache Poisoning or Routing-based SSRF.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-11-01 06:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

sinatra

RubyGems · All systems

Affected

  • introduced 0, fixed 4.1.0 (ecosystem)

Fixed versions

4.1.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