[Security] Bump webrick from 1.8.1 to 1.8.2
Bumps webrick from 1.8.1 to 1.8.2. This update includes a security fix.
Vulnerabilities fixed
HTTP Request Smuggling in ruby webrick
An issue was discovered in the WEBrick toolkit through 1.8.1 for Ruby. It allows HTTP request smuggling by providing both a Content-Length header and a Transfer-Encoding header, e.g., "GET /admin HTTP/1.1\r\n" inside of a "POST /user HTTP/1.1\r\n" request. NOTE: the supplier's position is "Webrick should not be used in production."Patched versions: none
Affected versions: <= 1.8.1
Release notes
Sourced from webrick's releases.
v1.8.2
What's Changed
- Drop commented-out line by
@olleolleollein ruby/webrick#108- Add Ruby 3.1 & 3.2 to CI matrix by
@tricknotesin ruby/webrick#109- Fix/redos by
@ooooooo-qin ruby/webrick#114- Raise HTTPStatus::BadRequest for requests with invalid/duplicate content-length headers by
@jeremyevansin ruby/webrick#120- Bump actions/checkout from 3 to 4 by
@dependabotin ruby/webrick#121- Improve CI by
@hsbtin ruby/webrick#123- Fix WEBrick::TestFileHandler#test_short_filename test not working on mswin by
@KJTsanaktsidisin ruby/webrick#128- Fix bug chunk extension detection by
@jeremyevansin ruby/webrick#125- Fix CI. by
@ioquatixin ruby/webrick#131- Merge multiple cookie headers, preserving semantic correctness. by
@ioquatixin ruby/webrick#130- Test on macos-latest by
@byrootin ruby/webrick#132- Require CRLF line endings in request line and headers by
@jeremyevansin ruby/webrick#138- Prefer squigly heredocs. by
@ioquatixin ruby/webrick#143- Only strip space and horizontal tab in headers by
@jeremyevansin ruby/webrick#141- Treat missing CRLF separator after headers as an EOFError by
@jeremyevansin ruby/webrick#142- Return 400 response for chunked requests with unexpected data after chunk by
@jeremyevansin ruby/webrick#136- Fix reference to URI::REGEXP::PATTERN::HOST by
@casperisfinein ruby/webrick#144- Prevent request smuggling by
@jeremyevansin ruby/webrick#146New Contributors
@tricknotesmade their first contribution in ruby/webrick#109@ooooooo-qmade their first contribution in ruby/webrick#114@KJTsanaktsidismade their first contribution in ruby/webrick#128@byrootmade their first contribution in ruby/webrick#132@casperisfinemade their first contribution in ruby/webrick#144Full Changelog: https://github.com/ruby/webrick/compare/v1.8.1...v1.8.2
Commits
-
0fb9de6Bump up v1.8.2 -
b9a4c81Removed trailing spaces -
f5faca9Prevent request smuggling -
0c600e1Fix reference to URI::REGEXP::PATTERN::HOST -
15a9391Return 400 response for chunked requests with unexpected data after chunk -
2b38d56Treat missing CRLF separator after headers as an EOFError -
e4efb4aRemove unnecessary gsub calls in test_httprequest.rb -
426e214Only strip space and horizontal tab in headers -
e72cb69Prefer squigly heredocs. (#143) -
ee60354Require CRLF line endings in request line and headers - Additional commits viewable in compare view