unstale

npm / libmime

libmime

What changed in libmime 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

1 security1 new APIs and options2 performance4 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

libmime 58 changes

Security 1

  • Header parsing was hardened against prototype pollution and parser differentials.

    5.4.2release notes

New APIs and options 1

Performance 2

  • Long non-ASCII words are encoded in linear time, improving encoding performance.

    5.4.9release notes

  • Flowed decoding and header unfolding now run in linear time.

    5.4.5release notes

Fixes and other changes 4

  • RFC 2231 parameters are marked as decoded.

    5.4.9release notes

  • Transfer-encoding codecs are refused when used as charsets.

    5.4.9release notes

  • B-encoded words are decoded through libbase64.

    5.4.6release notes

  • charset.decode returns a string for Japanese encodings.

    5.3.8release notes