Improper Input Validation Affecting ujson package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.27% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-UJSON-17427692
  • published10 Nov 2026
  • disclosed22 Jun 2026

Introduced: 22 Jun 2026

CVE-2026-54911  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:22.04 ujson.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ujson package and not the ujson package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1