CVE-2025-61921Sinatrarb Sinatra
Low 2.7 No auth needed
Follow: this CVE · Sinatrarb · Sinatrarb Sinatra We alert you by email or Slack (account required).
- Priority
- 31
- CVSS 4.0
- 2.7
- EPSS
- —
- Auth required
- No
- Published
- Oct 10, 2025
- Updated
- Oct 19, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Sinatra.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | sinatra |
< 4.2.0 |
4.2.0 |
gem "sinatra", ">= 4.2.0" |
Per OSV / GitHub Advisories (GHSA-mr3q-g2mv-mr4q). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| sinatrarb | sinatra | < 4.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.ruby-lang.org Issue Tracking
- github.com Issue Tracking
- github.com Exploit Patch
- github.com Patch
- github.com Vendor Advisory