Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:gem/sinatra@1.4.0.a
purl pkg:gem/sinatra@1.4.0.a
Next non-vulnerable version 4.2.0
Latest non-vulnerable version 4.2.0
Risk 4.0
Vulnerabilities affecting this package (4)
Vulnerability Summary Fixed by
VCID-5dmr-8tvd-8uen
Aliases:
CVE-2018-11627
GHSA-mq35-wqvf-r23c
Cross-site Scripting Sinatra has XSS via the Bad Request page that occurs upon a params parser exception.
2.0.0-alpha
Affected by 0 other vulnerabilities.
2.0.2
Affected by 4 other vulnerabilities.
VCID-7f81-3s1y-sfec
Aliases:
CVE-2022-29970
GHSA-qp49-3pvw-x4m5
sinatra does not validate expanded path matches Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
2.2.0
Affected by 3 other vulnerabilities.
VCID-tax5-a72w-mbhy
Aliases:
CVE-2025-61921
GHSA-mr3q-g2mv-mr4q
Sinatra is vulnerable to ReDoS through ETag header value generation There is a denial of service vulnerability in the `If-Match` and `If-None-Match` header parsing component of Sinatra, if the `etag` method is used when constructing the response and you are using Ruby < 3.2.
4.2.0
Affected by 0 other vulnerabilities.
VCID-vy9q-nvxx-yfh5
Aliases:
CVE-2024-21510
GHSA-hxx2-7vcw-mqr3
Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision 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.
4.1.0
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T03:14:07.690634+00:00 GHSA Importer Affected by VCID-vy9q-nvxx-yfh5 https://github.com/advisories/GHSA-hxx2-7vcw-mqr3 38.4.0
2026-04-12T01:09:00.024690+00:00 GitLab Importer Affected by VCID-tax5-a72w-mbhy https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2025-61921.yml 38.3.0
2026-04-12T00:31:11.110107+00:00 GitLab Importer Affected by VCID-vy9q-nvxx-yfh5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2024-21510.yml 38.3.0
2026-04-11T23:02:13.291004+00:00 GitLab Importer Affected by VCID-7f81-3s1y-sfec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2022-29970.yml 38.3.0
2026-04-11T21:53:50.744606+00:00 GitLab Importer Affected by VCID-5dmr-8tvd-8uen https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2018-11627.yml 38.3.0
2026-04-11T21:39:33.367617+00:00 Ruby Importer Affected by VCID-tax5-a72w-mbhy https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2025-61921.yml 38.3.0
2026-04-11T14:42:57.720088+00:00 GHSA Importer Affected by VCID-vy9q-nvxx-yfh5 https://github.com/advisories/GHSA-hxx2-7vcw-mqr3 38.3.0
2026-04-03T01:17:41.703282+00:00 GitLab Importer Affected by VCID-tax5-a72w-mbhy https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2025-61921.yml 38.1.0
2026-04-03T00:38:52.067617+00:00 GitLab Importer Affected by VCID-vy9q-nvxx-yfh5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2024-21510.yml 38.1.0
2026-04-02T23:10:40.453809+00:00 GitLab Importer Affected by VCID-7f81-3s1y-sfec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2022-29970.yml 38.1.0
2026-04-02T22:07:32.941044+00:00 GitLab Importer Affected by VCID-5dmr-8tvd-8uen https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2018-11627.yml 38.1.0
2026-04-02T19:37:00.248133+00:00 Ruby Importer Affected by VCID-tax5-a72w-mbhy https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2025-61921.yml 38.1.0
2026-04-02T15:23:18.305144+00:00 GHSA Importer Affected by VCID-vy9q-nvxx-yfh5 https://github.com/advisories/GHSA-hxx2-7vcw-mqr3 38.1.0
2026-04-01T17:30:28.319129+00:00 GitLab Importer Affected by VCID-7f81-3s1y-sfec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2022-29970.yml 38.0.0
2026-04-01T16:24:37.108073+00:00 GitLab Importer Affected by VCID-5dmr-8tvd-8uen https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/sinatra/CVE-2018-11627.yml 38.0.0
2026-04-01T15:54:40.676639+00:00 Ruby Importer Affected by VCID-tax5-a72w-mbhy https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2025-61921.yml 38.0.0