MAL-2026-6797: Malicious code in mongoose-lean-hooks (npm)
The mongoose-lean-hooks npm package versions 0.5.2 and 0.5.3 contain malicious code. Any system with this package installed should be considered fully compromised, as the malicious code may have granted full control to an outside entity. Immediate removal of the package is recommended, but this may not fully eliminate the threat. All secrets and keys on the affected system should be rotated from a separate, uncompromised device.
AI Analysis
Technical Summary
The mongoose-lean-hooks package versions 0.5.2 and 0.5.3 distributed via npm contain malicious code that compromises any computer running or having installed these versions. The compromise is severe enough to consider the system fully controlled by an attacker, necessitating secret and key rotation from a different machine. Removal of the package alone does not guarantee removal of all malicious artifacts or backdoors introduced by the package.
Potential Impact
Systems with mongoose-lean-hooks versions 0.5.2 or 0.5.3 installed are fully compromised. Attackers may have gained full control, potentially exposing all stored secrets and keys. The integrity and confidentiality of the affected system cannot be assured without comprehensive remediation.
Mitigation Recommendations
Remove the mongoose-lean-hooks package versions 0.5.2 and 0.5.3 immediately. Rotate all secrets and keys stored on the compromised system from a separate, secure computer. Because full control may have been granted to attackers, consider rebuilding or thoroughly cleaning the affected system to ensure complete removal of malicious software.
MAL-2026-6797: Malicious code in mongoose-lean-hooks (npm)
Description
The mongoose-lean-hooks npm package versions 0.5.2 and 0.5.3 contain malicious code. Any system with this package installed should be considered fully compromised, as the malicious code may have granted full control to an outside entity. Immediate removal of the package is recommended, but this may not fully eliminate the threat. All secrets and keys on the affected system should be rotated from a separate, uncompromised device.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The mongoose-lean-hooks package versions 0.5.2 and 0.5.3 distributed via npm contain malicious code that compromises any computer running or having installed these versions. The compromise is severe enough to consider the system fully controlled by an attacker, necessitating secret and key rotation from a different machine. Removal of the package alone does not guarantee removal of all malicious artifacts or backdoors introduced by the package.
Potential Impact
Systems with mongoose-lean-hooks versions 0.5.2 or 0.5.3 installed are fully compromised. Attackers may have gained full control, potentially exposing all stored secrets and keys. The integrity and confidentiality of the affected system cannot be assured without comprehensive remediation.
Mitigation Recommendations
Remove the mongoose-lean-hooks package versions 0.5.2 and 0.5.3 immediately. Rotate all secrets and keys stored on the compromised system from a separate, secure computer. Because full control may have been granted to attackers, consider rebuilding or thoroughly cleaning the affected system to ensure complete removal of malicious software.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6797
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-98h3-p825-wwhh"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c345427e9c797195fe056
Added to database: 07/06/2026, 23:03:48 UTC
Last enriched: 07/06/2026, 23:29:18 UTC
Last updated: 07/07/2026, 03:29:24 UTC
Views: 18
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.