Malicious Code Detected in paypal-examples-langchain: A Security Alert

paypal-examples-langchain Updated 02 Oct 2025

Summary

22/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6115: Malicious code in paypal-examples-langchain (npm). Affects paypal-examples-langchain versions >= 1.0.0. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The 'paypal-examples-langchain' package is designed to provide examples and integrations for using PayPal with the LangChain framework. It facilitates developers in creating applications that leverage PayPal's payment processing capabilities. However, this package has been identified as having a security vulnerability that allows it to communicate with a domain associated with malicious activities, posing a risk to users and their applications.

Vulnerability Detail

The vulnerability in 'paypal-examples-langchain' originates from its ability to connect to a malicious domain. This can lead to unauthorized data access, potential data breaches, and exploitation of user information. The malicious communication can compromise the integrity of applications utilizing this package, making it critical for developers to address this issue promptly.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall paypal-examples-langchain

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 temporary workaround, consider removing the 'paypal-examples-langchain' package from your project until a secure version is released. You can do this by executing the following command: npm uninstall paypal-examples-langchain. This will prevent any potential malicious activity while you await a fix.

Conclusion

The 'paypal-examples-langchain' package has been flagged for a serious vulnerability that allows communication with a malicious domain. It is crucial for developers to take immediate action by updating or uninstalling the package to protect their applications and user data. Staying informed about vulnerabilities through tools like Vulert can help maintain security in your projects.

See every vulnerability recorded for paypal-examples-langchain →

Share this vulnerability

FAQ

The vulnerability allows the package to communicate with a domain linked to malicious activities, which can compromise user data.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If an immediate update is not possible, consider uninstalling the package as a temporary measure to mitigate risks.

While specific exploits have not been detailed, the potential for data breaches and unauthorized access is significant.

Utilize tools like Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall paypal-examples-langchain

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback