Critical Malicious Code Vulnerability in typefence Package
Summary
MAL-2025-190936: Malicious code in typefence (npm). Affects typefence versions 1.2.2 – 1.2.3. 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 typefence package is an npm library designed to provide various functionalities for developers. However, it has been identified as containing malicious code that compromises the security of any system where it is installed. This vulnerability poses significant risks, including unauthorized access to sensitive information and potential control over the affected system.
Vulnerability Detail
The vulnerability originates from the typefence package, which has been flagged as containing embedded malicious code. This code can lead to a complete compromise of any computer running the package, allowing attackers to access secrets and keys stored on the system. The ramifications of this vulnerability are severe, as it can result in unauthorized data access, system manipulation, and a breach of user privacy.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall typefence
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
There are no effective workarounds for this vulnerability. The only recommended action is to remove the typefence package and secure the system by rotating any sensitive information.
Conclusion
The typefence package has been identified as containing malicious code that poses a significant security risk. Immediate removal of the package and rotation of any sensitive information is crucial to mitigate the impact of this vulnerability. Utilizing tools like Vulert can help monitor and alert for future vulnerabilities.
See every vulnerability recorded for typefence →
FAQ
typefence is an npm package that provides various functionalities for developers but has been compromised with malicious code.
If you have the typefence package installed, your system is likely compromised. You should take immediate action to secure your system.
You should rotate all secrets and keys stored on the affected system from a different, secure computer.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.