Skip to main content

Malicious code in grafeno-api (npm)

0
Critical
Published: 08/28/2026 (08/28/2026, 23:02:01 UTC)
Source: GCVE Database
Product: grafeno-api

Description

The npm package 'grafeno-api' versions 1.0.0 and 1.0.1 contains malicious code that executes attacker-controlled scripts during installation. It uses a preinstall script that downloads and runs a shell script from an untrusted HTTP source without integrity checks. The package itself provides no legitimate functionality, serving only as a delivery mechanism for malicious code execution.

Affected software

npmghsa
grafeno-api
Affected versions
=1.0.0=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/09/2026, 21:38:01 UTC

Technical Analysis

The 'grafeno-api' npm package versions 1.0.0 and 1.0.1 includes a preinstall lifecycle script that executes a shell command to fetch a script from an unencrypted HTTP endpoint (http://216.126.236.46/x.sh) and pipes it directly to /bin/bash. This allows arbitrary code execution on the machine installing the package. The package's main file is a no-op stub, indicating the package's sole purpose is malicious code delivery. The fetch operation is unpinned and lacks integrity verification, and errors during execution are suppressed, increasing stealth. This behavior was identified by Amazon Inspector and the OpenSSF Package Analysis project, which flagged the package as malicious.

Potential Impact

Installing the affected versions of 'grafeno-api' results in arbitrary code execution on the installer's system, potentially allowing attackers to execute any commands with the privileges of the user running the npm install. This can lead to system compromise, data theft, or further malware deployment. The package does not provide legitimate functionality, so its presence is solely harmful.

Mitigation Recommendations

Do not install 'grafeno-api' versions 1.0.0 or 1.0.1. Remove any installations of these versions from your environment. Since no patch or fixed version is indicated, avoid using this package entirely. Monitor your systems for signs of compromise if these versions were installed. Check official npm advisories and the OpenSSF Package Analysis for updates or remediation guidance.

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-15501
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a92f7d9acd9273b49e75a7e

Added to database: 08/29/2026, 15:16:41 UTC

Last enriched: 09/09/2026, 21:38:01 UTC

Last updated: 10/01/2026, 22:26:57 UTC

Views: 24

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