Malicious Code Detected in Encrypted Cookies PayPal Package
Summary
MAL-2025-19645: Malicious code in encryptedcookies-paypal (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 'encryptedcookies-paypal' package is an npm library designed for handling encrypted cookies specifically for PayPal transactions. It is intended to enhance security by ensuring that sensitive information is stored securely. However, this package has been found to contain malicious code, which poses significant risks to users and their applications.
Vulnerability Detail
The vulnerability in the 'encryptedcookies-paypal' package arises from the inclusion of malicious code that can compromise user data and application integrity. This code could potentially allow attackers to access sensitive information, manipulate transactions, or execute unauthorized actions within the application. The issue originates from version 0 and affects all subsequent versions, making it critical for users to address this vulnerability immediately.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall encryptedcookies-paypal
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 workaround, users can temporarily disable any functionality that relies on the 'encryptedcookies-paypal' package until a secure alternative is implemented. This can be done by commenting out the relevant code sections in your application that utilize this package.
Conclusion
The 'encryptedcookies-paypal' package has been identified as containing malicious code that poses significant risks to users. Immediate action is required to remove the package and secure applications against potential threats. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for encryptedcookies-paypal →
FAQ
It is an npm library designed for managing encrypted cookies for PayPal transactions, aimed at enhancing security.
The malicious code can compromise user data, manipulate transactions, and allow unauthorized actions within applications.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You should uninstall the 'encryptedcookies-paypal' package immediately and consider using a secure alternative.
Currently, there is no patched version available. It is recommended to remove the package entirely.