Skip to content

Upgrade tensorflow from >=2.1 to >=2.18.0#155

Open
david-patchfox wants to merge 1 commit intonasa:masterfrom
patchfox-io:upgrade-tensorflow-2.7.0
Open

Upgrade tensorflow from >=2.1 to >=2.18.0#155
david-patchfox wants to merge 1 commit intonasa:masterfrom
patchfox-io:upgrade-tensorflow-2.7.0

Conversation

@david-patchfox
Copy link

@david-patchfox david-patchfox commented Feb 10, 2026

Summary

Upgrades tensorflow dependency requirement from >=2.1 to >=2.18.0 to eliminate CVEs.

Motivation

  • Current setup.py allows tensorflow>=2.1, but runtime was detected using 1.12 (399 CVEs)
  • Pinning to >=2.18.0 aligns with nasa-soteria-processing-code (0 findings)
  • Part of NASA dataset security remediation effort

Compatibility

  • Code already uses TF 2.x APIs (tensorflow.keras, tf.data.Dataset)
  • Has version checks for TF < 2.2 compatibility
  • No breaking changes required
  • Existing tests should pass

Testing

  • Existing pytest suite in tests/
  • GitHub Actions CI will validate

Impact

Eliminates 399 CVEs by ensuring tensorflow 1.12 cannot be installed


Made by Dave and PatchFox 🦊

- Aligns with nasa-soteria-processing-code which uses 2.18.0 with 0 findings
- Code is already compatible (uses TF 2.x APIs, has version checks for <2.2)
- Eliminates 399 CVEs from tensorflow 1.12
- Part of NASA dataset security remediation effort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants