Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

keras

Latest version: v3.16.0

Overview

Last scanned
3 Dec 2026
Published
3 Dec 2026
PyPI package Publisher: fchollet, hertschuh, jeffcarp, tf-nightly
64,464 Stars
19,813 Forks
2 Versions
11.5M Downloads
Python Repo language

Scan summary

keras was last scanned on 3 Dec 2026 at version 3.16.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 3 Dec 2026.
  • Findings: No rules fired in version 3.16.0.
  • Downloads: 11,452,197 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.16.0 LATEST 3 Dec 2026 No rules fired
3.16.0.dev0 3 Dec 2026 No rules fired

No rules fired in 3.16.0

Findings

Findings for v3.16.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.16.0; other versions have their own rules, not their own score.

Known vulnerabilities

20 CVEs · last 10 Aug 2026

3 CRITICAL 10 HIGH 7 MEDIUM 0 LOW

Versions

  • ≥ 3.15.0
  • ≥ 3.14.0, < 3.15.0 1 CRITICAL 1 HIGH 5 MEDIUM
  • ≥ 3.13.2, < 3.14.0 1 CRITICAL 2 HIGH 5 MEDIUM
  • ≥ 3.13.0, < 3.13.2 1 CRITICAL 5 HIGH 5 MEDIUM
  • ≥ 3.12.3, < 3.13.0 2 HIGH 1 MEDIUM
  • ≥ 3.12.1, < 3.12.3 1 CRITICAL 3 HIGH 5 MEDIUM
  • ≥ 3.12.0, < 3.12.1 1 CRITICAL 5 HIGH 5 MEDIUM
  • ≥ 3.11.3, < 3.12.0 1 CRITICAL 6 HIGH 6 MEDIUM
  • ≥ 3.11.0, < 3.11.3 2 CRITICAL 7 HIGH 6 MEDIUM
  • ≥ 3.9.0, < 3.11.0 1 CRITICAL 9 HIGH 6 MEDIUM
Show all 14 version ranges
  • > 3.7.0, < 3.9.0 1 CRITICAL 10 HIGH 6 MEDIUM
  • ≥ 3.0.0, ≤ 3.7.0 1 CRITICAL 10 HIGH 7 MEDIUM
  • ≥ 2.13.1rc0, < 3.0.0 1 CRITICAL 5 HIGH 7 MEDIUM
  • < 2.13.1rc0 2 CRITICAL 5 HIGH 7 MEDIUM

Vulnerabilities

  • CVE-2026-12570 Medium 10 Aug 2026 keras: Keras: Denial of Service via HDF5 Shape Bomb when loading malicious model files Fixed in 3.15.0
  • CVE-2026-9335 Medium 2 Aug 2026 keras: Keras: Information disclosure via improper handling of HDF5 ExternalLinks Fixed in 3.12.3, 3.15.0
  • CVE-2026-12484 High 19 Jul 2026 keras: torch: Keras: Arbitrary code execution via unsafe deserialization of PyTorch data Fixed in 3.12.3, 3.15.0
  • CVE-2026-12482 Medium 14 Jul 2026 keras: Keras: Arbitrary File Operations via Malicious Tar Archive Processing Fixed in 3.12.3, 3.15.0
  • CVE-2026-12481 Critical 3 Jul 2026 keras: Keras: Arbitrary code execution via deserialization vulnerability Fixed in 3.12.3, 3.15.0
  • CVE-2026-12480 Medium 1 Jul 2026 keras: Keras: Information disclosure via malicious model archive with Virtual Dataset Fixed in 3.12.3, 3.15.0
  • CVE-2026-12479 Medium 22 Jun 2026 keras: Path Traversal in keras-team/keras Fixed in 3.12.3, 3.15.0
  • CVE-2026-11816 High 11 Jun 2026 keras: Keras: Arbitrary file write via path traversal in archive extraction utilities Fixed in 3.14.0
  • CVE-2026-1462 High 13 Apr 2026 keras: Keras: Arbitrary Code Execution Vulnerability Bypassing Safe Mode Fixed in 3.13.2
  • CVE-2026-1669 High 11 Feb 2026 keras: Keras: Information disclosure via arbitrary file read in model loading mechanism Fixed in 3.13.2, 3.12.1
  • CVE-2026-0897 High 15 Jan 2026 Keras: Keras: Denial of Service via crafted HDF5 weight loading file Fixed in 3.12.1, 3.13.2
  • CVE-2025-12060 High 30 Oct 2025 keras: Keras Path Traversal Vulnerability Fixed in 3.12.0
  • CVE-2025-12058 Medium 29 Oct 2025 keras: Keras Model.load_model Arbitrary Local File Loading and SSRF Fixed in 3.12.0
  • CVE-2025-49655 Critical 17 Oct 2025 keras: Keras deserialization of untrusted data Fixed in 3.11.3
  • CVE-2025-9906 High 19 Sep 2025 keras: Arbitrary Code execution in Keras Safe Mode Fixed in 3.11.0
  • CVE-2025-9905 High 19 Sep 2025 keras: Arbitary Code execution in Keras load_model() Fixed in 3.11.3
  • CVE-2025-8747 High 11 Aug 2025 CVE-2025-8747 affecting package keras for versions less than 3.3.3-3 Fixed in 3.11.0
  • CVE-2025-1550 High 11 Mar 2025 keras: Arbitrary Code Execution via Crafted Keras Config for Model Loading Fixed in 3.9.0
  • CVE-2024-55459 Medium 8 Jan 2025 keras: arbitrary file write via get_file function No fix yet
  • CVE-2024-3660 Critical 16 Apr 2024 A arbitrary code injection vulnerability in TensorFlow's Keras framewo ... Fixed in 2.13.1rc0

README

The publisher’s own README, as collected from the registry.

Keras 3: Deep Learning for Humans

Keras 3 is a multi-backend deep learning framework, with support for JAX, TensorFlow, PyTorch, and OpenVINO (for inference-only). Effortlessly build and train models for computer vision, natural language processing, audio processing, timeseries forecasting, recommender systems, etc.

  • Accelerated model development: Ship deep learning solutions faster thanks to the high-level UX of Keras and the availability of easy-to-debug runtimes like PyTorch or JAX eager execution.
  • State-of-the-art performance: By picking the backend that is the fastest for your model architecture (often JAX!), leverage speedups ranging from 20% to 350% compared to other frameworks. Benchmark here.
  • Datacenter-scale training: Scale confidently from your laptop to large clusters of GPUs or TPUs.

Join nearly three million developers, from burgeoning startups to global enterprises, in harnessing the power of Keras 3.

Installation

Install with pip

Keras 3 is available on PyPI as keras. Note that Keras 2 remains available as the tf-keras package.

  1. Install keras:
pip install keras --upgrade
  1. Install backend package(s).

To use keras, you should also install the backend of choice: tensorflow, jax, or torch. Additionally, The openvino backend is available with support for model inference only.

  1. (Optional) Install remote file access support.

To save to and load from Google Cloud Storage (gs:// paths) without TensorFlow, install the gcs extra:

pip install "keras[gcs]"
Local installation
Minimal installation

Keras 3 is compatible with Linux and macOS systems. For Windows users, we recommend using WSL2 to run Keras. To install a local development version:

  1. Install dependencies:
pip install -r requirements.txt
  1. Run installation command from the root directory.
python pip_build.py --install
  1. Run API generation script when creating PRs that update keras_export public APIs:
./shell/api_gen.sh

Backend Compatibility Table

The following table lists the minimum supported versions of each backend for the latest stable release of Keras (v3.x):

Backend Minimum Supported Version
TensorFlow 2.16.1
JAX 0.4.20
PyTorch 2.6.0
OpenVINO 2026.2.0
Adding GPU support

The requirements.txt file will install a CPU-only version of TensorFlow, JAX, and PyTorch. For GPU support, we also provide a separate requirements-{backend}-cuda.txt for TensorFlow, JAX, and PyTorch. These install all CUDA dependencies via pip and expect a NVIDIA driver to be pre-installed. We recommend a clean Python environment for each backend to avoid CUDA version mismatches. As an example, here is how to create a JAX GPU environment with conda:

conda create -y -n keras-jax python=3.10
conda activate keras-jax
pip install -r requirements-jax-cuda.txt
python pip_build.py --install

Configuring your backend

You can export the environment variable KERAS_BACKEND or you can edit your local config file at ~/.keras/keras.json to configure your backend. Available backend options are: "tensorflow", "jax", "torch", "openvino". Example:

export KERAS_BACKEND="jax"

In Colab, you can do:

import os

os.environ["KERAS_BACKEND"] = "jax"

import keras

Note: The backend must be configured before importing keras, and the backend cannot be changed after the package has been imported.

Note: The OpenVINO backend is an inference-only backend, meaning it is designed only for running model predictions using model.predict() method.

Backwards compatibility

Keras 3 is intended to work as a drop-in replacement for tf.keras (when using the TensorFlow backend). Just take your existing tf.keras code, make sure that your calls to model.save() are using the up-to-date .keras format, and you're done.

If your tf.keras model does not include custom components, you can start running it on top of JAX or PyTorch immediately.

If it does include custom components (e.g. custom layers or a custom train_step()), it is usually possible to convert it to a backend-agnostic implementation in just a few minutes.

In addition, Keras models can consume datasets in any format, regardless of the backend you're using: you can train your models with your existing tf.data.Dataset pipelines or PyTorch DataLoaders.

Why use Keras 3?

  • Run your high-level Keras workflows on top of any framework -- benefiting at will from the advantages of each framework, e.g. the scalability and performance of JAX or the production ecosystem options of TensorFlow.
  • Write custom components (e.g. layers, models, metrics) that you can use in low-level workflows in any framework.
    • You can take a Keras model and train it in a training loop written from scratch in native TF, JAX, or PyTorch.
    • You can take a Keras model and use it as part of a PyTorch-native Module or as part of a JAX-native model function.
  • Make your ML code future-proof by avoiding framework lock-in.
  • As a PyTorch user: get access to power and usability of Keras, at last!
  • As a JAX user: get access to a fully-featured, battle-tested, well-documented modeling and training library.

Read more in the Keras 3 release announcement.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases keras

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229