Critical Malicious Code Vulnerability in wild-pet-rest-api Package
Summary
MAL-2025-6669: Malicious code in wild-pet-rest-api (npm). Affects wild-pet-rest-api versions 2.3.1 – 9.9.1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The wild-pet-rest-api package is an npm library designed to provide a RESTful API for managing pet-related data. It allows developers to integrate pet management features into their applications seamlessly. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from malicious code embedded within specific versions of the wild-pet-rest-api package (2.3.1 and 9.9.1). This code can potentially compromise the security of applications by allowing unauthorized access or manipulation of sensitive data. The issue was discovered by ReversingLabs and is documented in their findings, indicating that users of these versions are at risk of exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wild-pet-rest-api
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you may consider removing the wild-pet-rest-api package from your project until a secure version is confirmed. You can do this by running:
npm uninstall wild-pet-rest-api
This will prevent any potential exploitation while you assess alternative solutions.
Conclusion
The wild-pet-rest-api package has been identified to contain malicious code that poses serious security risks. It is crucial for developers using this package to update to a secure version or remove it from their projects to protect their applications from potential exploitation.
See every vulnerability recorded for wild-pet-rest-api →
FAQ
The wild-pet-rest-api package is an npm library that provides a RESTful API for managing pet-related data in applications.
The malicious code can lead to unauthorized access and manipulation of sensitive data, posing a significant security risk.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in real-time. By analyzing your package-lock.json file, Vulert can help you determine if your application is affected.
Yes, Vulert allows you to monitor vulnerabilities without requiring access to the code or installation. You can check your application using the Vulert playground at Vulert Scanner.
If you cannot update the package right away, consider removing it from your project as a temporary measure to mitigate risks.