django-bkvision (PyPI) · Malicious Code
Affects django-bkvisionSource GCVE Database
Malicious package : remove django-bkvision and rotate any secrets on hosts that installed it.
Data as of 10 Jul 2026, 13:04 UTC
Malicious package
Published to PyPI · OSV MAL-2026-6593
What to do
Remove django-bkvision from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIdjango-bkvision | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The django-bkvision package version 1.2.0 on PyPI contains malicious code that executes during installation. This code collects host metadata such as hostname, username, current working directory, Python version, platform, process ID, and timestamp, then sends this information to an external webhook. Additionally, it performs an HTTP GET request to an internal IP address and forwards the response status and partial content to the same external webhook, effectively enabling server-side request forgery (SSRF) detection. The malicious behavior occurs unconditionally during installation, despite claims that it is gated by environment variables. This package is a dependency confusion attack targeting environments that resolve django-bkvision==1.2.0 from public PyPI instead of the intended internal package.