CVE-2025-61921

Sinatra has ReDoS vulnerability in ETag header value generation

HIGH
7.5
CVSS Score
Published: October 10, 2025 at 07:28 PM UTC
Updated: October 19, 2026 at 04:10 PM UTC
2 products affected across 2 vendorsSinatraSinatra

Using sinatra by sinatra?

Get instant alerts when new vulnerabilities affect sinatra - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.2.0
v < 4.2.0
Affected range stops below 4.2.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q
x_refsource_MISCIssue Tracking
Source: cverecord
https://github.com/sinatra/sinatra/issues/2120
x_refsource_MISCExploitPatch
Source: cverecord
https://github.com/sinatra/sinatra/pull/1823
x_refsource_MISCPatch
Source: cverecord
https://github.com/sinatra/sinatra/pull/2121
x_refsource_MISCIssue Tracking
Source: cverecord
https://bugs.ruby-lang.org/issues/19104

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-1333

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card