Denial of Service Vulnerability in Sinatra Web Framework from Ruby
CVE-2025-61921
2.7LOW
What is CVE-2025-61921?
Sinatra, a Ruby framework for web applications, contains a vulnerability related to the parsing of If-Match
and If-None-Match
headers prior to version 4.2.0. When applications utilize the etag
method in their responses, specially crafted input may lead to a significant delay in the processing of these headers, potentially exposing web services to denial of service attacks. This vulnerability affects all applications relying on these headers for response generation, highlighting the critical need for upgrading to version 4.2.0 or later to mitigate such risks.
Affected Version(s)
sinatra < 4.2.0