VDB
Sign up
MEDIUM5.9

PYSEC-2026-921

simplejson before 2.6.1 vulnerable to array index error

Quick fix

PYSEC-2026-921 — simplejson: upgrade to the fixed version with the command below.

pip install --upgrade 'simplejson>=2.6.1'

Details

Array index error in the scanstring function in the _json module in Python 2.7 through 3.5 and simplejson before 2.6.1 allows context-dependent attackers to read arbitrary process memory via a negative index value in the idx argument to the raw_decode function.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/simplejson
Introduced in: 0Fixed in: 2.6.1
Fixpip install --upgrade 'simplejson>=2.6.1'

References