{"id":"CVE-2026-54911","published":"2026-06-22T20:53:07Z","modified":"2026-06-23T14:20:13Z","title":"UltraJSON: Malformed/Truncated UTF-8 Accepted and Silently Rewritten in ujson.dumps()","vendor":"ultrajson","product":"ultrajson","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00371,"percentile":0.31883,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-3j69-69wj-xqx2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ultrajson/ultrajson/commit/169eaf36b1116fece5034ee79a7a0ef3f6deedcf","tags":["x_refsource_MISC"]},{"url":"https://github.com/ultrajson/ultrajson/releases/tag/5.13.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":6.38},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"ultrajson","affectedVersions":[{"vendor":"ultrajson","product":"ultrajson","versions":["< 5.13.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-23T14:19:57.855154Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ujson","vulnerableRanges":["<5.13.0"],"patched":["5.13.0"],"from":["GHSA-3j69-69wj-xqx2","PYSEC-2026-2294"],"provenance":"source"}],"summary":{"text":"UltraJSON's ujson.dumps(), ujson.dump() and ujson.encode() functions, in the ultrajson Python bindings of the ultrajson project prior to 5.13.0, accept malformed or truncated UTF-8 byte sequences when the reject_bytes=False option is set, rewriting them into different Unicode characters instead of rejecting them. An attacker able to send network input to an affected application can exploit this without authentication or user interaction, since no particular configuration beyond the reject_bytes=False option is stated, to bypass input validation and cause data integrity problems.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:00Z"},"euvd":{"id":"EUVD-2026-38362","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-32874","published":"2026-03-20","fixed":"5.12.0","kev":false},{"cve":"CVE-2026-32875","published":"2026-03-20","fixed":"5.12.0","kev":false},{"cve":"CVE-2026-44660","published":"2026-05-27","fixed":"5.12.1","kev":false,"link":{"from":"CVE-2026-44660","to":"CVE-2026-54911","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ujson","fromFixed":"5.12.1","toFixed":"5.13.0","daysApart":26}]}},{"cve":"CVE-2026-54911","published":"2026-06-22","fixed":"5.13.0","kev":false}],"package":"PyPI:ujson"}}