Malicious Code Vulnerability in spatialmedia Package
Summary
MAL-2026-1994: Malicious code in spatialmedia (PyPI). Affects spatialmedia versions 9.9.9. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The spatialmedia package, available on PyPI, is designed for handling spatial media files. It is commonly used in applications that require manipulation of 360-degree video and audio formats. However, the package has been identified to contain malicious code that compromises user data upon installation.
Vulnerability Detail
The vulnerability originates from a malicious code embedded within the spatialmedia package, specifically in the setup.py file. This code is executed during the installation process, leading to the exfiltration of sensitive information such as the user's IP address and username. The package has no legitimate functionality beyond this malicious intent, posing a risk to users who install it.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall spatialmedia
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 temporary workaround, avoid installing the spatialmedia package until a secure version is released. If you need similar functionality, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The spatialmedia package has been identified as containing malicious code that compromises user data. Users are advised to uninstall the package and monitor for updates or alternatives. Utilizing tools like Vulert can help in identifying vulnerabilities in open-source software.
See every vulnerability recorded for spatialmedia →
FAQ
The spatialmedia package is used for handling spatial media files, particularly in applications involving 360-degree video and audio.
The malicious code exfiltrates basic information from your system, such as your IP address and username, potentially compromising your privacy.
As of now, there is no patched version available. It is recommended to avoid using the package until a secure version is released.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check your application against known vulnerabilities using the Vulert playground without any signup.
If you have installed the spatialmedia package, immediately uninstall it using the command pip uninstall spatialmedia and refrain from using it until a secure version is available.