Skip to main content
MalwarePublished

django-b64-img (PyPI) · Malicious Code

Affects django-b64-imgSource GCVE Database

0

Malicious package : remove django-b64-img and rotate any secrets on hosts that installed it.

Data as of 27 Oct 2026, 00:07 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-3413

What to do

Remove django-b64-img 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

ProductAffectedFixed in
PyPIdjango-b64-imgAffected
  • =1.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: kam193 (f5ebdaebc61cf7a888322348e074f219519b7d09a24ab91732d8bc5061d86b2e) 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

References

Community reviews

Loading reviews…