Malicious Code Detected in Tensorflows Package: A PyPI Vulnerability

tensorflows Updated 03 Dec 2025

Summary

26/05/2025
CRITICAL
No i
Critical
Not published

MAL-2025-191891: Malicious code in tensorflows (PyPI). Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The 'tensorflows' package is a Python library available on the Python Package Index (PyPI) that is likely intended for machine learning and data manipulation tasks. However, it has been identified as a typosquatting package, which means it mimics the name of a legitimate package to deceive users. This vulnerability raises concerns about the safety and integrity of the software, as it may contain malicious code.

Vulnerability Detail

The vulnerability stems from the 'tensorflows' package being a typosquatting attempt, where malicious actors create packages that closely resemble legitimate ones to trick users into installing them. Although no known malicious parts have been identified, the potential for harm exists, especially if users mistakenly believe they are using a trusted library. The package was introduced with a SHA256 hash of 'd47039abe1931b7e4e75ab44d59a042ff1d113feefd8b34711404fb8dfa83cf8', and it is categorized under PROBABLY_PENTEST, indicating it may be used for penetration testing or research but poses low-harm possibilities.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall tensorflows

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, if you have already installed 'tensorflows', you can uninstall it using the command: 'pip uninstall tensorflows'. Then, install the correct package with: 'pip install tensorflow'.

Conclusion

The 'tensorflows' package poses a potential risk due to its nature as a typosquatting attempt. Users are advised to uninstall this package and switch to the legitimate 'tensorflow' package to ensure the safety and integrity of their applications. Utilizing tools like Vulert can help monitor for vulnerabilities effectively.

See every vulnerability recorded for tensorflows →

Share this vulnerability

FAQ

Typosquatting is a malicious practice where attackers create packages with names similar to legitimate ones to deceive users into installing them.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

You should uninstall the 'tensorflows' package and install the legitimate 'tensorflow' package instead.

Currently, there are no known malicious parts identified in the 'tensorflows' package, but the risk of potential harm remains.

Vulert monitors and alerts in real-time for open-source vulnerabilities in software by analyzing the Pipfile.lock, ensuring that developers are aware of any potential risks.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall tensorflows

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback