GitHub Advisoryadvisory · RubyGems

GHSA-mr3q-g2mv-mr4q Sinatra is vulnerable to ReDoS through ETag header value generation

LOW Published 2025-10-10 Modified 2025-10-13 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

Weakness · CWE (2)

  • CWE-1333 Inefficient Regular Expression Complexity weakness
  • CWE-400 Uncontrolled Resource Consumption weakness

References