Advisory

PYSEC-2026-2293

Also known as: CVE-2026-44660, GHSA-c38f-wx89-p2xg

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-05-27 21:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

ujson

PyPI · All systems

Affected

  • introduced 0, fixed 5.12.1 (ecosystem)

Fixed versions

5.12.1

Fix

  • Fixed version 5.12.1
    pip install --upgrade ujson==5.12.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences