Improper input validation in Ultrajson
CVE-2026-54911
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.004, 31.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Ultrajson — versions < 5.13.0
- Ultrajson Project
Weakness classification (CWE)
References
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-3j69-69wj-xqx2 (Patch, Mitigation, Vendor Advisory)
- https://github.com/ultrajson/ultrajson/commit/169eaf36b1116fece5034ee79a7a0ef3f6deedcf (Patch)
- https://github.com/ultrajson/ultrajson/releases/tag/5.13.0 (Product, Release Notes)