MAL-2025-4843 Malicious code in libffi-dev (npm)
- Package
- libffi-dev
- Registry
- npm
What is MAL-2025-4843?
MAL-2025-4843 is a malicious package in libffi-dev, published on 10 Jun 2025.
Official description
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
This advisory concerns a malicious npm package named libffi-dev. It is not related to the upstream C library libffi nor distro development packages named libffi-dev shipped by Debian, Ubuntu, Alpine, etc.
What should I do about MAL-2025-4843?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.
Sources
Also known as GHSA-2p54-33x3-2mcf, SNYK-JS-LIBFFIDEV-10338516.