This is an automated email from the ASF dual-hosted git repository.
chibenwa pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-mime4j.git
The following commit(s) were added to refs/heads/master by this push:
new 07e05f5c [CHANGELOG] Prepare 0.8.16 release
07e05f5c is described below
commit 07e05f5c5c44574a566fd93a35a7bd33869505dc
Author: Benoit TELLIER <[email protected]>
AuthorDate: Wed Dec 2 13:58:53 2026 +0100
[CHANGELOG] Prepare 0.8.16 release
---
CHANGELOG.md | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ffffe7e6..4d662144 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,75 @@ All notable changes to this project will be documented in this
file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
+## [0.8.16] - 2026-12-02
+
+This release hardens MIME4J against malformed and hostile input. Most of the
fixes come from a
+fuzzing campaign over the parser, the DOM and the writers.
+
+Enhancements:
+
+ - MIME4J-335 DecoderUtil: treat a null DecodeMonitor as SILENT
+ - Allow tuning MimeConfig.PERMISSIVE (#133)
+ - MimeUtil: draw boundaries and Message-IDs from a SecureRandom
+ - RawField#checkLineBreaks: stricter checks, reject whitespace-only
continuation lines
+ - RawField(name, body): reject names that are not RFC 5322 field names
+ - CipherStorageProvider: encrypt with segmented AES-256/GCM
+
+Bug fixes:
+
+ - Parsing limits: maxLineLen, maxHeaderLen, maxHeaderCount and maxContentLen
are now exact
+ (a value of exactly the limit is accepted, line terminators are not
counted, 0 disables
+ maxContentLen), apply whatever the read sizes or number of streams, and an
exceeded
+ content limit is reported as a MimeException
+ - MIME structure no longer depends on read sizes (MimeBoundaryInputStream,
QuotedPrintableInputStream,
+ MimeTokenStream); non-ASCII boundaries are matched with their UTF-8 bytes
+ - stop(): consistent behaviour inside multiparts, headers and nested
entities, also in strict mode
+ - Header injection hardening in the DOM writers: EncoderUtil and
AddressFormatter neutralize or encode
+ CR/LF, encoded-word look-alikes, invalid parameter names and domains that
would add recipients
+ - DefaultMessageWriter: never encode a multipart body, delimit it with the
Content-Type that describes it,
+ a nested multipart does not close an enclosing one
+ - DOM builders, StorageBodyFactory, CharsetUtil#forEncoding: never silently
lose text a charset cannot
+ encode (fall back to UTF-8 / US-ASCII)
+ - Address parsing (LenientAddressParser, DefaultAddressParser,
AddressListParser): quoted pairs,
+ domain literals, obsolete routes, group names and encoded words are read as
RFC 5322 / RFC 2047 specify
+ - Header field parsing (RawFieldParser, RawField#getBody,
StructuredFieldParser): folding, quoted pairs,
+ comments, bare CR / LF and boundary parameters handled consistently between
readers
+ - LenientAddressParser: bound ParserCursor by byte length in the CharSequence
overloads (#129)
+ - Ignore a malformed leading duplicate Content-Type /
Content-Transfer-Encoding so core and DOM agree (#137)
+ - RFC 2231 parameters: continuations joined by section number, each parameter
decoded with its own charset,
+ valueless parameters no longer throw
+ - Strict Content-Type, Content-Disposition, Content-Language and MIME-Version
parsers: parse the whole value,
+ accept all-digit tokens and non-ASCII values, report lexical errors as
ParseException
+ - Date handling: numeric and obsolete zones, comments between tokens, 1/3/9+
digit years, oversized numbers
+ reported as ParseException; MimeUtil#formatDate writes the full year;
convertToDate uses the proleptic
+ Gregorian calendar
+ - MimeUtil#fold: never produce whitespace-only lines nor break next to an
existing fold
+ - DecoderUtil: strict Q / B decoding errors reported as
IllegalArgumentException, encoded-word ordering and
+ empty charset names fixed
+ - Quoted-printable and Base64 codecs: lone CR / LF round trip, trailing
whitespace and leading dash encoded,
+ double close safe, Base64InputStream never returns 0
+ - MboxIterator: From_ lines cut by buffer boundaries or ending with CRLF are
handled
+ - MessageMatcher: single pass search, bounded header fields, overlapping and
trailing matches found
+ - Lower case MIME types and parameter names, and look up field parsers, with
Locale.US
+ - BasicBodyFactory, TempFileStorageProvider, TextInputStream,
LineReaderInputStreamAdaptor: resource and
+ stream contract fixes
+ - JavaCC token managers: the comment-nesting counter is per parser (thread
safety)
+
+Performance:
+
+ - Remove quadratic behaviours on hostile headers: unclosed domain literals,
encoded-word scanning in
+ DecoderUtil, JavaCC error reporting on long lookaheads, From_ line
matching, folding
+ - MimeBoundaryInputStream: look for the delimiter at line starts only
+ - Faster codecs: Base64 input / output, quoted-printable input, RFC 2047
decoding
+ - RawFieldParser: bit-mask delimiter sets and bulk copies
+ - DateTimeFieldLenientImpl: fast path for the common date form
+ - MessageMatcher: block reads and Latin-1 case folding
+ - Fewer allocations: Field collections, ParserStreamContentHandler,
BufferedLineReaderInputStream, TextInputStream
+
+Upgrades:
+
+ - guava 32.0.0-jre -> 33.7.2-jre (CVE-2026-102554) (#136, #140)
+
## [0.8.15] - 2026-09-03
CVE-2026-85108: Apache James MIME4J: Denial of service due to Allocation of
Resources Without Limits or Throttling
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]