VDB
Sign up
HIGH7.5

PYSEC-2026-2293

Quick fix

PYSEC-2026-2293 — ujson: upgrade to the fixed version with the command below.

pip install --upgrade 'ujson>=5.12.1'

Details

UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/ujson
Introduced in: 0Fixed in: 5.12.1
Fixpip install --upgrade 'ujson>=5.12.1'

References