MAL-2026-3413 Malicious code in django-b64-img (PyPI)
- Package
- django-b64-img
- Registry
- PyPI
What is MAL-2026-3413?
MAL-2026-3413 is a malicious package in django-b64-img, published on 10 May 2026.
Official description
The package provides a special image-storing field for Django REST Framework based on a legitimate implementation from the Hipo/drf-extra-fields repository. The malicious modification appends the cloud credentials and full settings values to the serialized form of specific image types. This way, an attacker can retrieve sensitive values by downloading back once uploaded image.
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-05-old-django-b64-img
Reasons (based on the campaign):
exfiltration-credentials
obfuscation
backdoor
What should I do about MAL-2026-3413?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.