CVE-2026-54911
MEDIUM 6.5CVSS 3.1UltraJSON: Malformed/Truncated UTF-8 Accepted and Silently Rewritten in ujson.dumps()
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
- 22 Jun 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-20
- Also known as
- GHSA-3j69-69wj-xqx2PYSEC-2026-2294
- Sources
- NVDJSONOSV GHSA-3j69-69wj-xqx2JSONOSV PYSEC-2026-2294JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ultrajson_project | ultrajsoncpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* |
< 5.13.0 | 5.13.0 |
| OSV | PyPI | ujson | < 5.13.0 | 5.13.0 |
References
- https://github.com/ultrajson/ultrajson/commit/169eaf36b1116fece5034ee79a7a0ef3f6deedcf · Patch, WEB, FIX
- https://github.com/ultrajson/ultrajson/releases/tag/5.13.0 · Product, Release Notes, WEB, ADVISORY
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-3j69-69wj-xqx2 · Mitigation, Patch, Vendor Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-54911 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/ujson/PYSEC-2026-2294.yaml · WEB
- https://github.com/ultrajson/ultrajson · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Jun 2026)