Critical Malicious Code Vulnerability in json-mapping-src Package
Summary
MAL-2026-895: Malicious code in json-mapping-src (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 json-mapping-src package is a JavaScript library available through npm, primarily used for mapping JSON data structures. It is designed to facilitate the transformation and manipulation of JSON objects in various applications. However, this package has been identified as containing malicious code, posing significant security risks to any system utilizing it.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the json-mapping-src package. This code can compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information, including secrets and keys. The ramifications of this vulnerability are severe, as it may lead to complete control of the affected system by an external entity. Users are advised to consider their systems fully compromised if this package is present.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall json-mapping-src
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 other than removing the package and securing your system. Ensure that you monitor your system for any unusual activity following the removal.
Conclusion
The json-mapping-src package contains malicious code that poses a significant security threat to any system using it. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for json-mapping-src →
FAQ
Immediately remove the json-mapping-src package from your system and rotate any secrets or keys stored on that machine.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to sensitive information, complete control of your system by malicious actors, and potential data breaches.
There is no patch available for this specific vulnerability. The recommended action is to remove the package entirely.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and ensure that you only use trusted packages from reputable sources.