Skip to content

2.14.2

Latest

Choose a tag to compare

@flavorjones flavorjones released this 26 Oct 20:37
· 4 commits to main since this release
v2.14.2
464a5f4

2.14.2 / 2026-10-26

Security

  • A malicious server can no longer make Mechanize::FileSaver, or Mechanize::DirectorySaver with decode_filename: true, write files outside the save directory. Only applications that register one of these as a pluggable parser are affected. GHSA-hxgc-9476-fc65

Improved

  • The gem no longer packages the test suite, the test certificates, or the example scripts, which makes it about a third smaller. It still packages test/htdocs/, which Mechanize::TestCase needs. (#667) @yuri-zubov
  • Mechanize::TestCase fake responses work with net-http 0.10.0 and later, which reads response lines with Net::BufferedIO#readuntil. Previously a chunked response body raised NoMethodError. The fake socket is now a Net::BufferedIO, like a real one, so read_body yields fragments of at most 16 KiB, and a body shorter than its Content-Length raises EOFError when ignore_eof is false.