PYSEC-2026-1056

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/ujson/PYSEC-2026-1056.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-1056
Aliases
Published
2026-07-06T08:03:30.989917Z
Modified
2026-07-07T11:46:02.150833922Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Potential double free of buffer during string decoding
Details

Impact

What kind of vulnerability is it? Who is impacted?

When an error occurs while reallocating the buffer for string decoding, the buffer gets freed twice.

Due to how UltraJSON uses the internal decoder, this double free is impossible to trigger from Python.

Patches

Has the problem been patched? What versions should users upgrade to?

Users should upgrade to UltraJSON 5.4.0.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

There is no workaround.

For more information

If you have any questions or comments about this advisory: * Open an issue in UltraJSON

References

Affected packages

PyPI / ujson

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.4.0

Affected versions

1.*
1.4
1.6
1.8
1.9
1.15
1.18
1.19
1.21
1.22
1.23
1.30
1.33
1.34
1.35
2.*
2.0.0
2.0.1
2.0.2
2.0.3
3.*
3.0.0
3.1.0
3.2.0
4.*
4.0.0
4.0.1
4.0.2
4.1.0
4.2.0
4.3.0
5.*
5.0.0
5.1.0
5.2.0
5.3.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/ujson/PYSEC-2026-1056.yaml"