{
  "id": "CVE-2025-61921",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-61921",
  "published_at": "2025-10-10T19:28:10.688Z",
  "title": "Sinatra has ReDoS vulnerability in ETag header value generation",
  "vendor": "sinatra",
  "product": "sinatra",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Sinatra is a domain-specific language for creating web applications in Ruby. In versions prior to 4.2.0, 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. Carefully crafted input can cause `If-Match` and `If-None-Match` header parsing in Sinatra to take an unexpected amount of time, possibly resulting in a denial of service attack vector. This header is typically involved in generating the `ETag` header value. Any applications that use the `etag` method when generating a response are impacted. Version 4.2.0 fixes the issue.",
  "cwe": "CWE-1333",
  "cpes": [
    "cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 2.7,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "sinatra",
        "product": "sinatra",
        "ranges": [
          "\u003c 4.2.0"
        ],
        "fixed_in": [
          "4.2.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade sinatra to 4.2.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/sinatra/sinatra/pull/1823"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/sinatra/sinatra/pull/2121"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
