All vulnerabilities

PyPI

CVE-2026-145573

UltraJSON 4.2.0 before 6.0.0 Memory Leak via ujson.dumps() default Handler

Severity
Medium 6.3
Published
5 Dec 2026
Last changed
5 Dec 2026
Added to UpHeron
5 Dec 2026
Fixed in
6.0.0
Weakness
Memory leak (CWE-401)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Slow it down
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Sources
CVE Program

Description

UltraJSON 4.2.0 before 6.0.0 contains a memory leak in Object_beginTypeContext() that fails to release objects returned by a caller-supplied default handler. Attackers who can repeatedly trigger encoding of values whose default handler returns non-serializable objects leak one object per failed call, gradually exhausting process memory.

From the CVE Program.

Affected software

SoftwareAffected versions
ujsonPyPI · osv:PyPI:ujson
  • From 4.2.0 before 6.0.0

About ujson

Weekly downloads (PyPI)
6,190,456PyPI Stats, 5 Dec 2026

This is the only vulnerability in ujson in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-145573