Malicious code in buffer-utilities (npm)
The npm package 'buffer-utilities' impersonates the legitimate 'buffer' package by copying its metadata and advertises itself as a Node.js Buffer API for browsers. Upon being required, it fetches and executes JavaScript code from a mutable external JSON paste service (jsonkeeper.com) using eval(), allowing remote code execution with full process privileges. This behavior enables an attacker controlling the paste to execute arbitrary code on any system importing this package. The package versions 1.0.0, 1.1.0, and 1.1.1 are affected. Removal of the package is recommended, but full system compromise is possible, so secrets and keys should be rotated immediately from a separate trusted environment.
AI Analysis
Technical Summary
The 'buffer-utilities' npm package (versions 1.0.0, 1.1.0, and 1.1.1) is a malicious package that impersonates the legitimate 'buffer' package by copying its metadata. It contains code that, when imported, base64-decodes a URL pointing to a mutable JSON paste on jsonkeeper.com and fetches JavaScript code from this URL. The fetched code is then executed via eval(), allowing an attacker who controls the paste to run arbitrary code with full privileges on the host system. This design enables dynamic and stealthy remote code execution without any version bump or package update. The package is considered fully compromising any system where it is installed or running.
Potential Impact
Any system that imports the 'buffer-utilities' package versions 1.0.0, 1.1.0, or 1.1.1 is at risk of full compromise. The package executes arbitrary JavaScript code fetched from a remote mutable source with full process privileges, potentially allowing attackers to execute any commands, steal secrets, or take complete control of the system. The compromise includes risk to all secrets and keys stored on the affected system, which should be considered exposed.
Mitigation Recommendations
Remove the 'buffer-utilities' package immediately from all affected systems. Rotate all secrets, keys, and credentials that were stored or accessible on the compromised systems from a separate, trusted environment. Because the package enables full system compromise, assume the system may be persistently compromised and consider rebuilding or thoroughly investigating the affected hosts. There is no official patch or fix available; the package is malicious by design and should not be used.
Malicious code in buffer-utilities (npm)
Description
The npm package 'buffer-utilities' impersonates the legitimate 'buffer' package by copying its metadata and advertises itself as a Node.js Buffer API for browsers. Upon being required, it fetches and executes JavaScript code from a mutable external JSON paste service (jsonkeeper.com) using eval(), allowing remote code execution with full process privileges. This behavior enables an attacker controlling the paste to execute arbitrary code on any system importing this package. The package versions 1.0.0, 1.1.0, and 1.1.1 are affected. Removal of the package is recommended, but full system compromise is possible, so secrets and keys should be rotated immediately from a separate trusted environment.
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 'buffer-utilities' npm package (versions 1.0.0, 1.1.0, and 1.1.1) is a malicious package that impersonates the legitimate 'buffer' package by copying its metadata. It contains code that, when imported, base64-decodes a URL pointing to a mutable JSON paste on jsonkeeper.com and fetches JavaScript code from this URL. The fetched code is then executed via eval(), allowing an attacker who controls the paste to run arbitrary code with full privileges on the host system. This design enables dynamic and stealthy remote code execution without any version bump or package update. The package is considered fully compromising any system where it is installed or running.
Potential Impact
Any system that imports the 'buffer-utilities' package versions 1.0.0, 1.1.0, or 1.1.1 is at risk of full compromise. The package executes arbitrary JavaScript code fetched from a remote mutable source with full process privileges, potentially allowing attackers to execute any commands, steal secrets, or take complete control of the system. The compromise includes risk to all secrets and keys stored on the affected system, which should be considered exposed.
Mitigation Recommendations
Remove the 'buffer-utilities' package immediately from all affected systems. Rotate all secrets, keys, and credentials that were stored or accessible on the compromised systems from a separate, trusted environment. Because the package enables full system compromise, assume the system may be persistently compromised and consider rebuilding or thoroughly investigating the affected hosts. There is no official patch or fix available; the package is malicious by design and should not be used.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5087
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-67mv-3xg7-3726"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c7468715ace4315ac4f
Added to database: 07/09/2026, 09:40:04 UTC
Last enriched: 07/09/2026, 10:08:56 UTC
Last updated: 07/26/2026, 11:07: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.
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.