Security mailing lists by PureSourceCode

CVE-2025-61921

LOW 2.7CVSS 4.0

Sinatra is vulnerable to ReDoS through ETag header value generation

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.

Published
10 Oct 2025
Last modified
19 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-1333CWE-400
Also known as
GHSA-mr3q-g2mv-mr4q
Sources
NVDJSONOSV GHSA-mr3q-g2mv-mr4qJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 LOW 2.7 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
OSV GitHub CVSS 4.0 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 nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD sinatrarb sinatra
cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*
< 4.2.0 4.2.0
OSV RubyGems sinatra < 4.2.0 4.2.0

References

History

  • 25 Nov 2026 20:59 UTC · NVD: first stored (published 10 Oct 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Oct 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.