VDB
Sign up
CRITICAL9.8

PYSEC-2026-369

Keras code injection vulnerability

Quick fix

PYSEC-2026-369 — keras: upgrade to the fixed version with the command below.

pip install --upgrade 'keras>=2.13.1rc0'

Details

A arbitrary code injection vulnerability in TensorFlow's Keras framework (<2.13) allows attackers to execute arbitrary code with the same permissions as the application using a model that allow arbitrary code irrespective of the application.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/keras
Introduced in: 0Fixed in: 2.13.1rc0
Fixpip install --upgrade 'keras>=2.13.1rc0'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/keras"]}'