# CVE-2026-54911: UltraJSON: Malformed/Truncated UTF-8 Accepted and Silently Rewritten in ujson.dumps()

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-06-19T20:47:43.000Z
- Modified: 2026-09-10T03:50:55.310Z
- Also known as: GHSA-3j69-69wj-xqx2, PYSEC-2026-2294
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ultrajson ultrajson: < 5.13.0
- ujson (PyPI): before 5.13.0
- ultrajson_project ultrajson: before 5.13.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/ultrajson/ultrajson/security/advisories/GHSA-3j69-69wj-xqx2> (fix, mitigation, patch, vendor-advisory, web)
- <https://github.com/ultrajson/ultrajson/commit/169eaf36b1116fece5034ee79a7a0ef3f6deedcf> (fix, patch, web)
- <https://github.com/ultrajson/ultrajson/releases/tag/5.13.0> (advisory, product, release-notes, web)
- <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)

## Sources

- CVE List: [CVE-2026-54911](https://www.cve.org/CVERecord?id=CVE-2026-54911), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-3j69-69wj-xqx2](https://github.com/advisories/GHSA-3j69-69wj-xqx2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54911](https://nvd.nist.gov/vuln/detail/CVE-2026-54911), Public domain, modified 2026-06-26
- PyPA Advisory Database: [PYSEC-2026-2294](https://osv.dev/vulnerability/PYSEC-2026-2294), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-54911 · Whole record: https://cve.day/CVE-2026-54911.json · Rebuilt by cve.day 2026-11-25T22:59:25.426Z
