# CVE-2025-61921: Sinatra has ReDoS vulnerability in ETag header value generation

- Severity: Low 2.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-10T19:28:10.688Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-mr3q-g2mv-mr4q
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- sinatra sinatra: < 4.2.0
- sinatra (RubyGems): before 4.2.0
- sinatrarb sinatra: before 4.2.0

## Every score

- GitHub_M: CVSS:4.0 2.7 Low `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`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/sinatra/sinatra/pull/1823> (exploit, patch, web)
- <https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q> (vendor-advisory, web)
- <https://github.com/sinatra/sinatra/issues/2120> (issue-tracking, web)
- <https://github.com/sinatra/sinatra/pull/2121> (patch, web)
- <https://bugs.ruby-lang.org/issues/19104> (issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61921> (advisory)
- <https://github.com/sinatra/sinatra/commit/3fe8c38dc405586f7ad8f2ac748aa53e9c3615bd> (web)
- <https://github.com/sinatra/sinatra/commit/8ff496bd4877520599e1479d6efead39304edceb> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2025-61921.yml> (web)
- <https://github.com/sinatra/sinatra> (package)

## Sources

- CVE List: [CVE-2025-61921](https://www.cve.org/CVERecord?id=CVE-2025-61921), CVE Terms of Use, modified 2025-10-10
- GitHub Advisory Database: [GHSA-mr3q-g2mv-mr4q](https://github.com/advisories/GHSA-mr3q-g2mv-mr4q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-61921](https://nvd.nist.gov/vuln/detail/CVE-2025-61921), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-61921 · Whole record: https://cve.day/CVE-2025-61921.json · Rebuilt by cve.day 2026-11-25T22:59:05.774Z
