cbor2 breaking changes
cbor2 6.2.0 (November 1, 2026) is its newest release with breaking changes, 4 of them. The first: Decoder now rejects non-integer decimal fraction and bigfloat parts in cbor2 6.2.0. Every breaking API change we have recorded in cbor2 on PyPI: 22 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.3.0, released November 13, 2026. Source repository
Its 6.0.0rc1 release drops Python 3.9. Python end of life dates.
cbor2 6.2.0 breaking changes
- Behavior changed
Decimal fractions (tag 4) and bigfloats (tag 5) with a non-integer exponent or mantissa are now rejected instead of accepted. Data relying on them will raise errors. github.com - Behavior changed
Bytes regular expression patterns are encoded as the pattern rather than its repr(), so previously encoded tag 35 data decodes differently. Code depending on the old output must be updated. github.com - Behavior changed
Shared references (tag 29) can no longer build object graphs nested deeper than max_depth. Inputs that previously decoded at excessive depth may now be rejected. github.com - Behavior changed
Set tag 258 whose payload is a text string, byte string or map is now rejected instead of being folded into a set. Code relying on the old lenient decoding must send proper arrays. github.com
cbor2 6.1.5 breaking changes
- Behavior changed
Datetimes in string form without a UTC offset are no longer decoded into naive datetime objects and now raise an error instead. Code relying on the old naive result must supply an offset or handle the error. github.com
cbor2 6.1.4 breaking changes
- Behavior changed
bytearray values now take part in string references as bytes and str do, so encoded output for payloads mixing bytearray with string references changes. Re-encode stored data if it relies on the old output. github.com - Behavior changed
Bignum tags (2 and 3) whose payload is not a byte string, such as an array or map, now raise an error instead of being coerced into an integer. Code relying on the coercion must send byte strings. github.com - Behavior changed
Malformed indefinite-length maps whose break marker follows a key with no value now raise an error instead of silently returning a truncated map. Handle the error if your input may contain such data. github.com
cbor2 6.1.3 breaking changes
- Behavior changed
Tags 52 and 54 used to silently truncate address byte strings longer than the address size; they now raise a malformed-input error. Code relying on the truncated result must handle the error. github.com
cbor2 6.0.0rc1 breaking changes
- Removed
The individual decoding functions are no longer part of the public API. Open an issue if you need them back. github.com - Removed
Python 3.9 is no longer supported. Use Python 3.10 or later. github.com - Removed
break_marker
The break_marker singleton is no longer available. Remove any code that imports or uses it. github.com - Removed
cbor2.decoder
The deprecated cbor2.decoder module is gone. Import everything directly from cbor2. github.com - Removed
cbor2.encoder
The deprecated cbor2.encoder module is gone. Import everything directly from cbor2. github.com - Removed
CBORDecodeValueError
Decoding errors now chain ValueError or TypeError to CBORDecodeError. Catch CBORDecodeError instead of CBORDecodeValueError. github.com - Renamed
cbor2.FrozenDict
The FrozenDict class is now called frozendict. On Python 3.15 use the built-in frozendict instead. github.com - Behavior changed
Non-base exceptions raised during decoding are now wrapped in CBORDecodeError. Code catching other exception types may need updating. github.com - Behavior changed
The decoder now rejects invalid two-byte simple value sequences that it previously accepted. github.com - Behavior changed
Tag 261 with host bits set now yields an IPv4Interface or IPv6Interface. Code expecting a network address object must handle this. github.com
And 3 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.