Skip to main content

Malicious code in buffer-util-extend (npm)

0
Critical
Published: 04/14/2026 (04/14/2026, 10:22:11 UTC)
Source: GCVE Database
Product: buffer-util-extend

Description

The 'buffer-util-extend' npm package contains malicious code that executes arbitrary JavaScript fetched from a remote, mutable JSON paste URL during import. This results in full arbitrary code execution on the machine installing or building with the package. The package impersonates the legitimate 'buffer' package to deceive users, adding unrelated dependencies and a remote eval payload. Any system with this package installed should be considered fully compromised, and secrets should be rotated immediately. Removal of the package does not guarantee full remediation due to potential persistence of malicious software.

Affected software

npmghsa
buffer-util-extend
Affected versions
=1.0.8=1.0.13=1.0.11=1.0.2=1.0.3=1.0.4=1.0.5=1.0.6=1.0.7=1.0.9=1.0.10=1.0.1

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

AILast updated: 09/08/2026, 09:22:43 UTC

Technical Analysis

The 'buffer-util-extend' npm package versions 1.0.1 through 1.0.13 (including 1.0.8, 1.0.11, and others) contain a supply-chain attack where the package's index.js decodes a base64-encoded URL pointing to a mutable JSON paste. It fetches this JSON and executes the 'content' field via eval(), allowing an attacker to run arbitrary code on the install/build machine at import time. The package mimics the legitimate 'buffer' package by copying its metadata and source code but adds malicious dependencies and the remote code execution payload. This design enables attackers to swap payloads at any time without republishing the package, posing a severe risk to any system that installs or uses it.

Potential Impact

Any computer that installs or runs this package is fully compromised due to arbitrary code execution at import time. Attackers can execute any code on the affected system, potentially stealing secrets, installing persistent malware, or performing other malicious actions. Secrets and keys stored on the compromised system should be considered exposed and rotated immediately from a secure environment. Removing the package alone may not remove all malicious artifacts or backdoors introduced by the attacker.

Defensive Guidance

Immediate removal of the 'buffer-util-extend' package is required. All secrets and keys on affected systems must be rotated from a different, trusted machine. Because the package executes remote code dynamically, full system compromise is likely; therefore, a thorough incident response and system rebuild may be necessary. There is no official patch or fix available; the package itself is malicious. Avoid using this package and verify dependencies carefully to prevent supply-chain attacks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-2920
Osv Schema Version
1.7.4
Aliases
["GHSA-g44v-3gq3-j8p6"]
Ecosystems
["npm"]

Threat ID: 6a96f319acd9273b49e4975b

Added to database: 09/01/2026, 15:45:29 UTC

Last enriched: 09/08/2026, 09:22:43 UTC

Last updated: 09/08/2026, 09:22:43 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses