Malicious Code Detected in examfirst Package - Security Alert
Summary
MAL-2025-20029: Malicious code in examfirst (npm). Affected versions are not published. 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 examfirst package is an npm library designed for educational purposes, primarily used to create and manage exam-related functionalities. It allows developers to easily integrate exam features into their applications. However, this package has been identified to contain malicious code, posing a significant security risk to users and their applications.
Vulnerability Detail
The vulnerability in the examfirst package originates from the inclusion of malicious code that can compromise the security of applications utilizing this package. This malicious code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue is particularly concerning as it affects all versions starting from 0, making it critical for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall examfirst
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, users can remove the examfirst package from their project until a secure version is released. This can be done by executing the following command: npm uninstall examfirst.
Conclusion
The examfirst package has been identified as containing malicious code, which poses a serious security threat to applications using it. Users are urged to update or uninstall the package until a secure version is available. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for examfirst →
FAQ
The examfirst package is an npm library used for creating and managing exam functionalities in applications.
The specific nature of the malicious code has not been disclosed, but it poses a risk of unauthorized access and data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without any signup.
If you cannot update the package, it is recommended to uninstall the examfirst package until a secure version is released.
More details can be found in the vulnerability report on GitHub: https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/examfirst/MAL-2025-20029.json.