Critical Malicious Code Vulnerability in safe-json-parsex Package
Summary
MAL-2026-1968: Malicious code in safe-json-parsex (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 safe-json-parsex package is an npm library designed to safely parse JSON data. It aims to provide a secure alternative to standard JSON parsing methods, ensuring that data is handled correctly and securely. However, this package has been compromised, leading to significant security risks for any application utilizing it.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the safe-json-parsex package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The ramifications include potential data breaches and loss of control over the affected systems. Users are advised to treat any system running this package as compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall safe-json-parsex
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 safest approach is to remove the package entirely and ensure that all sensitive information is secured.
Conclusion
The safe-json-parsex package has been compromised with malicious code, posing significant security risks to any systems using it. Immediate action is required to remove the package and secure sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for safe-json-parsex →
FAQ
You should remove the package immediately and rotate any secrets or keys stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your systems.
There are no effective mitigations other than removing the package and securing your environment.
Regularly check vulnerability databases and consider using tools like Vulert to monitor your dependencies for any new vulnerabilities.