points
points copied to clipboard
Bump net-imap from 0.4.1 to 0.4.20
Bumps net-imap from 0.4.1 to 0.4.20.
Release notes
Sourced from net-imap's releases.
v0.4.20
What's Changed
This release backports two features to prevent unbounded memory use: the
response_handlerskeyword argument toNet::IMAP.newso response handlers can be added before the server can send any responses (ruby/net-imap#427), and themax_response_sizeconfig attribute (ruby/net-imap#445).[!NOTE] The default
max_response_sizeisnil(unlimited), to avoid backward compatibility issues with secure connections to trusted servers that are well-behaved. It can be configured more conservatively to guard against untrusted servers (for example, connecting to user-provided hostnames). It is the responsibility ofnet-imapusers to configure their client appropriately for the server they are connecting to.Added
- ✨ Add
response_handlerskwarg toNet::IMAP.newby@nevansin ruby/net-imap#427
- Backports #419
- ✨ Limit max_response_size by
@nevansin ruby/net-imap#445
- Backports #444
Documentation
- 📚 Backport documentation to v0.4 by
@nevansin ruby/net-imap#426Other Changes
- ♻️ Update versioned default configs by
@nevansin ruby/net-imap#413
- Backports #412
- ♻️ Refactor
get_responseby@nevansin ruby/net-imap#431
- Backports #422
- ♻️ Rational config versions by
@nevansin ruby/net-imap#430
- Backports #429
- ♻️ Extract ResponseReader from get_response by
@nevansin ruby/net-imap#434
- Backports #433
- ♻️ Refactoring by
@nevansin ruby/net-imap#436Miscellaneous
- ✅ Various test improvements to v0.4 by
@nevansin ruby/net-imap#425Full Changelog: https://github.com/ruby/net-imap/compare/v0.4.19...v0.4.20
v0.4.19
What's Changed
🔒 Security Fix
Fixes CVE-2025-25186 (GHSA-7fc5-f82f-cx69): A malicious server can exhaust client memory by sending
APPENDUIDorCOPYUIDresponses with very largeuid-setranges.Net::IMAP::UIDPlusDataexpands these ranges into arrays of integers.Fix with minor API changes
Set
config.parser_use_deprecated_uidplus_datatofalseto replaceUIDPlusDatawithAppendUIDDataandCopyUIDData. These classes store their UIDs asNet::IMAP::SequenceSetobjects (not expanded into arrays of integers). Code that does not handleAPPENDUIDorCOPYUIDresponses should not see any difference. Code that does handle these responses may need to be updated.For v0.3.8, this option is not available For v0.4.19, the default value is
true. For v0.5.6, the default value is:up_to_max_size. For v0.6.0, the only allowed value will befalse(UIDPlusDatawill be removed from v0.6).
... (truncated)
Commits
5b8f9ae🔖 Bump version to 0.4.208222a36🔀 Merge pull request #445 from ruby/backport/v0.4-max_response_size641c4c4✅ Fix backport compatibility with ruby 2.719bea63✨ Make max_response_size configurableddcaabd✨ Limit max response size to 512MiB (hard-coded)2ca4dbc🔀 Merge pull request #436 from ruby/backport/v0.4-refactor-config-and-respons...9279f8a✅ Fix backport compatibility with ruby 2.70e27fc1♻️ Save ResponseReader ivars:@buff&@literal_size17064cd✅ Fix backport compatibility with ruby 2.7e4bb734✨ Fix Config::AttrTypeCoercion for Ractor sharing- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.