Skip to content

[Snyk] Security upgrade keras from 2.6.0 to 3.13.2#10516

Open
sestinj wants to merge 1 commit intomainfrom
snyk-fix-914eec71f2742a5e25659f9ddbeca199
Open

[Snyk] Security upgrade keras from 2.6.0 to 3.13.2#10516
sestinj wants to merge 1 commit intomainfrom
snyk-fix-914eec71f2742a5e25659f9ddbeca199

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Feb 14, 2026

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • manual-testing-sandbox/requirements.txt
⚠️ Warning
typer 0.3.2 has requirement click<7.2.0,>=7.1.1, but you have click 8.1.8.
thinc 8.0.17 requires murmurhash, which is not installed.
thinc 8.0.17 requires cymem, which is not installed.
thinc 8.0.17 requires preshed, which is not installed.
spacy 3.1.2 requires murmurhash, which is not installed.
spacy 3.1.2 requires cymem, which is not installed.
spacy 3.1.2 requires preshed, which is not installed.
qtconsole 5.4.4 requires pyzmq, which is not installed.
notebook 6.5.7 requires pyzmq, which is not installed.
jupyter-server 1.24.0 requires pyzmq, which is not installed.
jupyter-console 6.6.3 requires pyzmq, which is not installed.
jupyter-client 7.4.9 requires pyzmq, which is not installed.
ipykernel 6.16.2 requires pyzmq, which is not installed.
exceptiongroup 1.3.1 has requirement typing-extensions>=4.6.0; python_version < "3.13", but you have typing-extensions 3.10.0.2.

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.


Continue Tasks: ✅ 1 no changes — View all


Summary by cubic

Upgraded Keras from 2.6.0 to 3.13.2 in manual-testing-sandbox/requirements.txt to fix vulnerability SNYK-PYTHON-KERAS-15268069 and move the sandbox to Keras 3.

  • Migration
    • Run sandbox scripts/notebooks on Keras 3 and update any tensorflow.keras imports to keras if used.
    • Set a backend explicitly (e.g., export KERAS_BACKEND=tensorflow or torch) to avoid runtime mismatches.
    • If using the PyTorch backend, keep torch installed (already in requirements) and run a quick training smoke test.

Written for commit 7d25883. Summary will update on new commits.

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-KERAS-15268069
@sestinj sestinj requested a review from a team as a code owner February 14, 2026 12:48
@sestinj sestinj requested review from RomneyDa and removed request for a team February 14, 2026 12:48
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 14, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="manual-testing-sandbox/requirements.txt">

<violation number="1" location="manual-testing-sandbox/requirements.txt:29">
P2: Keras 3.13.2 requires a newer TensorFlow (>=2.16.1). With tensorflow==2.6.0 still pinned, this upgrade introduces an incompatible dependency set. Align TensorFlow or Keras versions to a compatible pair.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

# Deep Learning
torch==2.6.0
keras==2.6.0
keras==3.13.2
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Keras 3.13.2 requires a newer TensorFlow (>=2.16.1). With tensorflow==2.6.0 still pinned, this upgrade introduces an incompatible dependency set. Align TensorFlow or Keras versions to a compatible pair.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At manual-testing-sandbox/requirements.txt, line 29:

<comment>Keras 3.13.2 requires a newer TensorFlow (>=2.16.1). With tensorflow==2.6.0 still pinned, this upgrade introduces an incompatible dependency set. Align TensorFlow or Keras versions to a compatible pair.</comment>

<file context>
@@ -26,7 +26,7 @@ spacy==3.1.2
 # Deep Learning
 torch==2.6.0
-keras==2.6.0
+keras==3.13.2
 
 # Image processing
</file context>
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants