{"answers":{"affected":"2 open source packages ship an affected version, including sinatra. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-61921 in the wild and no public exploit code.","fix":"Upgrade sinatra to 4.2.0 or later.","what":"CVE-2025-61921 is a low-severity denial of service vulnerability in sinatra, published on 10 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-61921 and fix it if it is affected.\n\nWhat it is: CVE-2025-61921 is a low-severity denial of service vulnerability in sinatra, published on 10 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-61921 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- sinatra (RubyGems): affected all versions; fixed in 4.2.0\n- sinatra (RubyGems): affected all versions; fixed in 4.2.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-61921/ (Markdown: https://insights.sbomify.com/CVE-2025-61921/index.md)","id":"CVE-2025-61921","markdown":"https://insights.sbomify.com/CVE-2025-61921/index.md","name":"CVE-2025-61921","record":{"aliases":["CLEANSTART-2026-VS84759","DEBIAN-CVE-2025-61921","GHSA-mr3q-g2mv-mr4q","MINI-2f8v-qc34-5q3v","MINI-5fxm-34fj-4r3x","MINI-83c6-vmrq-xcpj","MINI-88ch-cxjq-f3fr","MINI-967v-x3q9-2f63","MINI-9cwm-4gf3-6rqg","MINI-cgc6-q47h-6597","MINI-g4q5-38vq-m34w","MINI-gq6j-78h2-9cjq","MINI-h8fv-r22m-9768","MINI-hgc6-543q-7c35","MINI-hrgh-mf9g-qr8v","MINI-j656-44vh-7wxj","MINI-jcjm-9xg5-qjjx","MINI-pgf9-6cv7-f8hw","MINI-pvfp-9cg4-58rg","MINI-rch4-4qmx-fv7x","MINI-rgrx-cx9r-gcpx","MINI-wrmp-9qv2-6m63","MINI-x5cw-mrx7-c6hc","UBUNTU-CVE-2025-61921"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby web framework","requires_auth":"none","summary":"Attackers can cause denial of service in Sinatra applications using the etag method via crafted If-Match or If-None-Match headers.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"sinatra","vendor":"sinatrarb"}],"cvss":{"score":2.7,"severity":"low","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Sinatra has ReDoS vulnerability in ETag header value generation","id":"CVE-2025-61921","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":2,"n_references":5,"next":{"headline":"PrestaShop Checkout allows customer account takeover via email","id":"CVE-2025-61922"},"packages":[{"ecosystem":"RubyGems","fixed":["4.2.0"],"introduced":["0"],"last_affected":[],"package":"sinatra","purl":null,"source":"GHSA-mr3q-g2mv-mr4q"},{"ecosystem":"RubyGems","fixed":["4.2.0"],"introduced":["0"],"last_affected":[],"package":"sinatra","purl":"pkg:gem/sinatra","source":"GHSA-mr3q-g2mv-mr4q"}],"prev":{"headline":"Authlib is vulnerable to Denial of Service via Oversized JOSE Segments","id":"CVE-2025-61920"},"products":["sinatra"],"published":"2025-10-10","related":[{"cvss_score":5.3,"headline":"Sinatra Path Traversal vulnerability","id":"CVE-2018-7212","kev_date_added":null,"published":"2018-02-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-10","vendors":["sinatra"]},"summary":"Attackers can cause denial of service in Sinatra applications using the etag method via crafted If-Match or If-None-Match headers.","url":"https://insights.sbomify.com/CVE-2025-61921/"}