Malicious Code Exfiltration in azure-langchain-example Package

azure-langchain-example Updated 28 Sep 2026

Summary

28/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17213: Malicious code in azure-langchain-example (PyPI). Affects azure-langchain-example versions 0.1.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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The azure-langchain-example package is a Python library available on PyPI, designed for integrating Azure services with LangChain. It aims to simplify the development of applications that leverage Azure's capabilities. However, this package has been identified to contain malicious code that compromises user data, making it a significant security risk.

Vulnerability Detail

The vulnerability originates from the package's design, which includes code that exfiltrates sensitive information such as the host's IP address and username upon installation. This malicious behavior is executed by overriding the install command in the setup.py file, allowing the code to run during the installation process. The implications of this vulnerability are serious, as it can lead to unauthorized access to user data and potential exploitation by malicious actors.

How To Fix

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

pip uninstall azure-langchain-example

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 measure, avoid installing the azure-langchain-example package until a secure version is available. If you have already installed it, remove it using the command: 'pip uninstall azure-langchain-example'.

Conclusion

The azure-langchain-example package has been identified as containing malicious code that can exfiltrate sensitive information from users' systems. It is crucial to uninstall this package and monitor for any updates or patches that may address this vulnerability. Utilizing tools like Vulert can help in identifying such vulnerabilities in your applications.

See every vulnerability recorded for azure-langchain-example →

Share this vulnerability

FAQ

It is a Python library designed for integrating Azure services with LangChain, aimed at simplifying application development.

The package exfiltrates sensitive information such as the host's IP address and username during installation.

You can use Vulert's playground at Vulert Scanner to monitor and check for vulnerabilities in your application without requiring a signup.

Uninstall the package immediately using the command 'pip uninstall azure-langchain-example' to mitigate any risks.

As of now, there is no patched version available. Keep an eye on the official repository for updates.

How To Fix

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

pip uninstall azure-langchain-example

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