unstale

pypi / ujson

ujson

What changed in ujson 5 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.

4 breaking4 security2 behavior and defaults2 tooling3 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.5 on npm

ujson 64 changes

Breaking changes 2

  • Bytes-like support is limited to bytes and bytearray, so other bytes-like types are no longer supported.

    6.0.0release notes

  • UTF-8 validation is tighter when loading strings from bytes.

    6.0.0release notes

Behavior and default changes 1

Fixes and other changes 1

  • Fixes a memory leak when the default handler returns non-serialisable objects until its recursion limit is hit.

    6.0.0release notes

ujson 511 changes

Breaking changes 2

  • UTF-8 validation is stricter when dumping bytes with reject_bytes=False.

    5.13.0release notes

  • Pre-built wheels for GraalPy on macOS are omitted from this release due to infrastructure issues building them.

    5.12.1release notes

Security 4

  • UltraJSON: Malformed/Truncated UTF-8 Accepted and Silently Rewritten in ujson.dumps()

    5.13.0security advisory

  • UltraJSON has a Memory Leak in ujson.dump() on Write Failure

    5.12.1security advisoryrelease notes

  • UltraJSON has a Memory Leak parsing large integers allows DoS

    5.12.0security advisory

  • UltraJSON has an integer overflow handling large indent leads to buffer overflow or infinite loop

    5.12.0security advisory

Behavior and default changes 1

  • The global interpreter lock is disabled for freethreading.

    5.13.0release notes

Tooling 2

  • Building GraalPy wheels on macOS arm64 is enabled again.

    5.13.0release notes

  • Wheels are now created for manylinux2014, expanding the available Linux wheel builds.

    5.13.0release notes

Fixes and other changes 2

  • ujson now supports Python 3.15.

    5.13.0release notes

  • Fixed an encoding reference leak involving non-English characters.

    5.12.1release notes