UltraJSON: Multiple Vulnerabilities Multiple vulnerabilities have been discovered in UltraJSON, the worst of which could lead to key confusion and value overwriting. ujson 2024-03-03 2024-03-03 855689 remote 5.4.0 5.4.0

UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.8+.

Affected versions were found to improperly decode certain characters. JSON strings that contain escaped surrogate characters not part of a proper surrogate pair were decoded incorrectly. Besides corrupting strings, this allowed for potential key confusion and value overwriting in dictionaries. All users parsing JSON from untrusted sources are vulnerable. From version 5.4.0, UltraJSON decodes lone surrogates in the same way as the standard library's `json` module does, preserving them in the parsed output.

Please review the referenced CVE identifiers for details.

There is no known workaround at this time.

All UltraJSON users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose ">=dev-python/ujson-5.4.0"
CVE-2022-31116 CVE-2022-31117 graaff graaff