MAL-2026-6645: Malicious code in @rmlibrary/formatting (npm)
The npm package @rmlibrary/formatting contains malicious code that compromises any computer on which it is installed or running. The presence of this package indicates a full system compromise, and all secrets and keys stored on the affected machine should be rotated immediately from a different, secure device. Simply removing the package does not guarantee removal of all malicious software introduced by it.
AI Analysis
Technical Summary
The @rmlibrary/formatting package on npm has been identified as containing malicious code. Installation or execution of this package results in a full compromise of the host system, potentially allowing an attacker complete control. Due to the severity of the compromise, all sensitive credentials on the affected system must be considered exposed and rotated from a separate trusted environment. Removal of the package alone is insufficient to ensure system integrity, as additional malicious artifacts may persist.
Potential Impact
Full system compromise on any computer with the package installed or running. Exposure of all stored secrets and keys on the affected machine. Potential persistent malicious presence beyond the package itself.
Mitigation Recommendations
Remove the @rmlibrary/formatting package immediately. Rotate all secrets and keys stored on the affected computer from a different, secure machine. Conduct a thorough investigation and remediation of the affected system, as removal of the package alone does not guarantee elimination of all malicious software.
MAL-2026-6645: Malicious code in @rmlibrary/formatting (npm)
Description
The npm package @rmlibrary/formatting contains malicious code that compromises any computer on which it is installed or running. The presence of this package indicates a full system compromise, and all secrets and keys stored on the affected machine should be rotated immediately from a different, secure device. Simply removing the package does not guarantee removal of all malicious software introduced by it.
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 @rmlibrary/formatting package on npm has been identified as containing malicious code. Installation or execution of this package results in a full compromise of the host system, potentially allowing an attacker complete control. Due to the severity of the compromise, all sensitive credentials on the affected system must be considered exposed and rotated from a separate trusted environment. Removal of the package alone is insufficient to ensure system integrity, as additional malicious artifacts may persist.
Potential Impact
Full system compromise on any computer with the package installed or running. Exposure of all stored secrets and keys on the affected machine. Potential persistent malicious presence beyond the package itself.
Mitigation Recommendations
Remove the @rmlibrary/formatting package immediately. Rotate all secrets and keys stored on the affected computer from a different, secure machine. Conduct a thorough investigation and remediation of the affected system, as removal of the package alone does not guarantee elimination of all malicious software.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6645
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-4j9v-f5j4-xjvx"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed3c27e9c79719935570
Added to database: 06/29/2026, 22:10:04 UTC
Last enriched: 06/29/2026, 22:24:48 UTC
Last updated: 06/30/2026, 00:43:52 UTC
Views: 3
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.