{"id":"MAL-2026-15566","title":"Malicious code in flask-header-guard (PyPI)","summary":"Malicious code in flask-header-guard (PyPI)","severity":"none","vendor":"flask-header-guard","product":"flask-header-guard","ecosystem":"pip","affected":["flask-header-guard"],"published":"2026-08-29","updated":"2026-08-29","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/MAL-2026-15566","references":[{"url":"https://bad-packages.kam193.eu/pypi/package/flask-header-guard"}],"tags":["osv","pip"],"ingestedAt":"2026-08-29T19:29:14.721Z","slug":"MAL-2026-15566","body":"## Overview\n\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (d050fa5a7000088c15b40b82ace014d66f18520ff36464659c8ad6e999ee83cb)\nDuring installation, the package attempts to exfiltrate sensitive environment variables and files, establish persistence and open a reverse shell. Additionally, the provided Flask middleware embeds a backdoor.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-08-pygame-renderkit\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.\n\n\n - files-exfiltration\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - exfiltration-env-variables\n\n\n - persistence\n\n\n## Affected packages\n\n- `flask-header-guard`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}