WEBRick vulnerable to HTTP Request/Response Smuggling
Published 24 May 2022 · Updated 29 May 2025
Is your project on an affected webrick?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=1.6.0 <1.6.1
- Fixed in
- 1.6.1
bundle update --conservative webrick # Gemfile: '>= 1.6.1'- Affected
- >=1.5.0 <1.5.1
- Fixed in
- 1.5.1
bundle update --conservative webrick # Gemfile: '>= 1.5.1'- Affected
- <1.4.4
- Fixed in
- 1.4.4
bundle update --conservative webrick # Gemfile: '>= 1.4.4'Details
An issue was discovered in Ruby through 2.5.8, 2.6.x through 2.6.6, and 2.7.x through 2.7.1. WEBrick, a simple HTTP server bundled with Ruby, had not checked the transfer-encoding header value rigorously. An attacker may potentially exploit this issue to bypass a reverse proxy (which also has a poor header check), which may lead to an HTTP Request Smuggling attack.
Is GHSA-gwfg-cqmg-cf8f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected webrick, and gives you the command that fixes it.
More advisories for webrick
- MediumCVE-2025-6442Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling · 26 Jun 2025
- HighCVE-2024-47220HTTP Request Smuggling in ruby webrick · 22 Sept 2024
- HighCVE-2017-10784WEBrick RCE Vulnerability · 14 May 2022
- HighCVE-2008-4310WEBrick Denial of Service Vulnerability · 2 May 2022
- MediumCVE-2009-4492WEBrick Improper Input Validation vulnerability · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-25613
- Linkgithub.com/ruby/webrick/commit/076ac636bf48b7a492887ce4de7041de23e6c00d
- Linkgithub.com/ruby/webrick/commit/7618049fa57ddad2efff2a7bc7dad7d2d8a311b1
- Linkgithub.com/ruby/webrick/commit/8946bb38b4d87549f0d99ed73c62c41933f97cc7
- Linkgithub.com/ruby/webrick/commit/af2efdcdf826f25592202d187c53963e7932e4b9
- Linkhackerone.com/reports/965267
- Packagegithub.com/ruby/webrick
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2020-25613.yml
- Linklists.debian.org/debian-lts-announce/2023/04/msg00033.html
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PFP3E7KXXT3H3KA6CBZPUOGA5VPFARRJ
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YTZURYROG3FFED3TYCQOBV66BS4K6WOV
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PFP3E7KXXT3H3KA6CBZPUOGA5VPFARRJ
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YTZURYROG3FFED3TYCQOBV66BS4K6WOV
- Linksecurity.gentoo.org/glsa/202401-27
- Linksecurity.netapp.com/advisory/ntap-20210115-0008
- Linkwww.ruby-lang.org/en/news/2020/09/29/http-request-smuggling-cve-2020-25613
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.