GHSA-hxx2-7vcw-mqr3

    Dashboard / Vulnerabilities / GHSA-hxx2-7vcw-mqr3

    GHSA-hxx2-7vcw-mqr3

    Published: 1 Nov 2024Last Modified: 10 Sept 2026

    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.

    Affected packages

    Package

    Name: sinatra

    Purl: pkg:gem/sinatra

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -4.1.0

    Affected versions

    0.1.0
    0.1.5
    0.1.6
    0.1.7

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High