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())

PYSEC-2026-2294
MEDIUM 6.5OSV

At a glance

Source
OSV
Published
Updated
CVE
CVE-2026-54911
Aliases
GHSA-3j69-69wj-xqx2
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVE severity
MEDIUM 6.5 · CVE-2026-54911

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.

References

Affected packages

PackageVersions
PyPI · ujsonintroduced 0, fixed 5.13.0

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database