pypi / msgpack
msgpack
What changed in msgpack 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
10 breaking6 security2 new APIs and options1 performance3 behavior and defaults1 tooling13 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmsgpack 136 changes
Breaking changes 10
Negative array and map header sizes are now rejected.
Raises OverflowError when use_single_float cannot represent a value.
Python 3.9 support was dropped, affecting which Python versions developers can use.
The setuptools version requirement was updated to >=78.1.1.
strict_map_key is now enforced when object_pairs_hook is used.
Support for the old buffer protocol is dropped.
The encoding option is removed from Packer and Unpacker.
Unpacker’s default max_buffer_size changes to 100MiB.
Python 2 support is removed from the C extension; the fallback implementation still supports Python 2.
Unpacker now defaults strict_map_key to True.
Security 6
Fixes memory leaks when map key validation or container hooks fail.
The C extension validates the nanoseconds range when unpacking timestamps.
Fixes a use-after-free in the ExtraData path when input is non-contiguous.
Adds a reentrant guard to feed(), preventing unsafe reentrant calls.
MessagePack for Python: Out-of-bounds read / crash on Unpacker reuse after a caught error
A use-after-free in get_data_from_buffer was fixed.
New APIs and options 2
Serialization and deserialization support is added for datetime objects with tzinfo.
Timestamp type support is added.
Performance 1
Unpacker interns string map keys.
Behavior and default changes 3
Packing now supports Python 3.15 frozentdict.
The default recursion limit increased from 511 to 1024.
Support was added for no-GIL interpreters.
Tooling 1
Wheels are now also built for Pyodide using Emscripten.
Fixes and other changes 13
In the fallback, the object remains unread when a header type does not match.
The fallback passes object_pairs_hook a list of pairs.
Fixes timestamp precision for far-future datetimes.
The fallback Unpacker.skip() translates RecursionError to StackError.
Improves error handling and reporting when unpacking.
An existing exception is re-raised when available.
Decoding invalid nested arrays no longer leaks memory.
Return codes in pack_timestamp are now handled properly.
Packer.pack_ext_type now performs the missing autoreset.
Timestamp.from_datetime now returns the correct value for pre-epoch datetimes.
The return code of unpack_callback_int64 is now checked.
The result of unpack_callback_uint32 is now checked.
The fallback's Unpacker.read_bytes returns bytes.