UltraJSON 4.2.0 before 6.0.0 contains a memory leak in Object_beginTypeContext() that fails to release objects
Source GCVE Database
Not known to be exploited · CVSS 6.3 Medium : upgrade to 6.0.0 when convenient.
Data as of 5 Dec 2026, 19:56 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 6.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 3.7 |
- Patch
- Available – fixed in 6.0.0
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Upgrade ultrajson to 6.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ultrajsonultrajson | Affected
| Fixed in
|
PyPIultrajsonpkg:pypi/ultrajsonOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid scenarios where untrusted input triggers encoding with non-serializable default handler returns.
Description
UltraJSON versions from 4.2.0 up to but not including 6.0.0 contain a memory leak vulnerability in the Object_beginTypeContext() function. This flaw occurs because objects returned by a caller-supplied default handler are not properly released, leading to memory exhaustion if an attacker repeatedly triggers encoding of values with non-serializable default handler returns.
References
- github.com/ultrajson/ultrajson/security/advisories/GHSA-8g3h-c45c-7pg3 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-145573 (opens in a new tab)
- github.com/ultrajson/ultrajson/commit/12492c2deb0e60ac66da40dc15f06ba967ed3e0a (opens in a new tab)
- github.com/ultrajson/ultrajson/blob/5.13.0/src/ujson/python/objToJSON.c (opens in a new tab)
- github.com/ultrajson/ultrajson/releases/tag/6.0.0 (opens in a new tab)
- vulncheck.com/advisories/ultrajson-4.2.0-before-6.0.0-memory-leak-via-ujson-dumps-default-handler (opens in a new tab)