GitHub Advisoryadvisory · RubyGems
GHSA-mr3q-g2mv-mr4q Sinatra is vulnerable to ReDoS through ETag header value generation
LOW
Official page ↗
- Aliases
- CVE-2025-61921
- Ecosystem
- RubyGems
- Packages
- sinatra
- Severity
- Low
- CVSS 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
- Weaknesses
- CWE-1333, CWE-400
- Reviewed
- 2025-10-10
Affected packages
• RubyGems sinatra: < 4.2.0 → fixed in 4.2.0
Description
Summary
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 and you are using Ruby = 3.2)
Related
Alias · CVE (1)
- CVE-2025-61921 Sinatra is a domain-specific language for creating web applications in Ruby. vulnerability
References
- https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q web
- https://nvd.nist.gov/vuln/detail/CVE-2025-61921 advisory
- https://github.com/sinatra/sinatra/issues/2120 web
- https://github.com/sinatra/sinatra/pull/1823 web
- https://github.com/sinatra/sinatra/pull/2121 web
- https://github.com/sinatra/sinatra/commit/3fe8c38dc405586f7ad8f2ac748aa53e9c3615bd web
- https://github.com/sinatra/sinatra/commit/8ff496bd4877520599e1479d6efead39304edceb web
- https://bugs.ruby-lang.org/issues/19104 web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2025-61921.yml web
- https://github.com/sinatra/sinatra package