Critical Malicious Code Vulnerability in figma-to-streamlit Package
Summary
MAL-2025-20521: Malicious code in figma-to-streamlit (npm). Affected versions are not published. 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 figma-to-streamlit package is an npm library designed to facilitate the integration of Figma designs into Streamlit applications, allowing developers to create interactive web applications from design prototypes. This package is popular among developers for its ease of use and ability to streamline the design-to-development workflow. However, it has been identified to contain malicious code, posing significant security risks to users who implement it in their projects.
Vulnerability Detail
The vulnerability in the figma-to-streamlit package arises from the inclusion of malicious code that can compromise the security of applications utilizing this package. This code can potentially lead to unauthorized access, data breaches, or other malicious activities within the user's environment. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action to mitigate the risks associated with this vulnerability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall figma-to-streamlit
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, users can avoid using the figma-to-streamlit package and explore alternative libraries that provide similar functionality without the associated risks. Additionally, users can implement security measures such as code reviews and static analysis tools to detect malicious code in their dependencies.
Conclusion
The figma-to-streamlit package has been found to contain malicious code that poses serious security risks to users. It is crucial for developers to remove this package from their projects and seek alternatives. Staying informed about vulnerabilities and utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for figma-to-streamlit →
FAQ
The figma-to-streamlit package is an npm library that allows developers to convert Figma designs into interactive Streamlit applications.
The malicious code can potentially allow unauthorized access and lead to data breaches or other harmful activities within the user's application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
You should remove the package from your project immediately and look for alternative solutions or libraries that do not have this vulnerability.
You can use tools like Vulert, which provides real-time monitoring for open-source vulnerabilities using just your package-lock.json file.