Security mailing lists by PureSourceCode

CVE-2026-54911

MEDIUM 6.5CVSS 3.1

UltraJSON: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD ultrajson_project ultrajson
cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:*
< 5.13.0 5.13.0
OSV PyPI ujson < 5.13.0 5.13.0

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.