Malicious code in apimpact (PyPI)
- GHSA-pfv3-prq2-j9f3
Summary
The PyPI package apimpact has a malicious optional dependency, apimpact-sync, which silently downloads and executes a specific executable. The download URL is taken either from environment variables or from a hardcoded internal address. The record classifies the campaign as malicious rather than vulnerable, noting that the malicious code was intentionally included in a dependency of the package and that it reflects a targeted attack. No CVSS score is listed, and the package is not on the CISA known exploited list. Engineers should check whether apimpact or apimpact-sync is installed in their environments and treat any hosts where it ran as potentially compromised.
AI summary · verify against the vendor advisory
Description
apimpact-sync, an optional dependency of apimpact, is used to silently download and execute a specific executable. The URL has to either be provided via env variables or available under a hardcoded internal address. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-12-apimpact Reasons (based on the campaign): - targetted-attack - The malicious code is intentionally included in a dependency of the package - Downloads and executes a remote executable. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/dc33bf8d560c78ba17929d8060e49725be68362e/osv/malicious/pypi/apimpact/MAL-2026-21153.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
apimpactPyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.