Incorrect Authorization Affecting ujson package, versions [,5.13.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (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 Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-UJSON-17391481
  • published21 Jun 2026
  • disclosed19 Jun 2026
  • creditErdembileg Ariunbold

Introduced: 19 Jun 2026

NewCVE-2026-54911  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade ujson to version 5.13.0 or higher.

Overview

ujson is an Ultra fast JSON encoder and decoder for Python

Affected versions of this package are vulnerable to Incorrect Authorization in the ujson.dumps function when the reject_bytes parameter is set to False. An attacker can cause data integrity issues or bypass input validation by submitting malformed or truncated UTF-8 byte sequences, which are silently rewritten into different Unicode characters instead of being rejected.

Workaround

This vulnerability can be mitigated by decoding bytes to strings in Python before passing them to ujson.dumps().

CVSS Base Scores

version 4.0
version 3.1