CVE-2025-61921CWE-1333

CVE-2025-61921

High · published October 11, 2025

CVSS v3.1
7.5
EPSS
0%
Percentile
41.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00495 · 41.6th percentile
Weakness
CWE-1333 · Inefficient Regular Expression Complexity
Published
2025-10-11T00:15Z
Affected products (1)
ProductVersionsFixed in
sinatrarb/sinatra< 4.2.04.2.0
References (5)
EPSS history
Timeline
  • 10 OCT 19:28Z
    Sinatra has ReDoS vulnerability in ETag header value generation
    cvelistv5