Critical Malicious Code Vulnerability in @beloved-lenora/opencode-shared-rpc Package
Summary
MAL-2026-17906: Malicious code in @beloved-lenora/opencode-shared-rpc (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 @beloved-lenora/opencode-shared-rpc package is an npm library designed for shared remote procedure calls (RPC) in JavaScript applications. It provides developers with tools to facilitate communication between different parts of their applications or between different applications. However, this package has been compromised, leading to significant security concerns for any system utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the @beloved-lenora/opencode-shared-rpc package. This code can fully compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code has been confirmed by security researchers, and it is classified under CWE-506, which indicates the presence of embedded malicious code. The ramifications of this vulnerability are severe, as it can lead to data breaches and loss of control over the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @beloved-lenora/opencode-shared-rpc
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 entirely from your project and ensuring that all secrets and keys are rotated.
Conclusion
The @beloved-lenora/opencode-shared-rpc package has been identified as containing malicious code that can compromise systems. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for @beloved-lenora/opencode-shared-rpc →
FAQ
You should immediately remove the package from your project and rotate any sensitive information stored on the affected machine.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit the Vulert playground at Vulert Scanner to check your application without requiring any signup.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your systems.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert and keep your packages updated to the latest secure versions.
CWE-506 indicates that the product contains code that appears to be malicious in nature, highlighting the serious security implications of this vulnerability.