Description
UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.13.0, ujson.dumps() (or ujson.dump() or ujson.encode()) have a reject_bytes=False option. When set, they may accept malformed or truncated UTF-8 byte sequences, silently rewriting them into different Unicode characters instead of rejecting them. This leads to input validation bypass and data integrity issues. This vulnerability is fixed in 5.13.0.
Affected products
ultrajson_project: ultrajson
References3
- github.com/ultrajson/ultrajson/security/advisories/GHSA-3j69-69… MitigationPatchVendor Advisory
- github.com/ultrajson/ultrajson/commit/169eaf36b1116fece5034ee79… Patch
- github.com/ultrajson/ultrajson/releases/tag/5.13.0 ProductRelease Notes
Metrics
- CVSS 3.1
-
6.5
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - EPSS — exploit probability
- 0% percentile: 32 · as of 16 November 2026
- CWE
- CWE-20
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.