Skip to main content

Malicious code in 0vulns-dependency-confusion-poc (npm)

0
Critical
Published: 06/12/2025 (06/12/2025, 17:49:59 UTC)
Source: GCVE Database
Product: 0vulns-dependency-confusion-poc

Description

The npm package '0vulns-dependency-confusion-poc' contains malicious code that executes automatically during installation. Its preinstall script runs a wget command to an attacker-controlled URL, exfiltrating system information such as username, current directory, and hostname. The package has no legitimate runtime functionality and exists solely to perform reconnaissance and telemetry exfiltration. Installing this package can lead to full system compromise, and all secrets and keys on the affected system should be rotated immediately. Removal of the package does not guarantee full remediation due to potential persistent malicious control.

Affected software

npmghsa
0vulns-dependency-confusion-poc
Affected versions
>=1.0.0=1.0.0

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, 03:23:16 UTC

Technical Analysis

The '0vulns-dependency-confusion-poc' npm package includes a preinstall script that executes a wget command targeting an attacker-controlled webhook.site URL, sending system information (user, directory, hostname) as query parameters. This script runs automatically on 'npm install' with unsafe permissions enabled, facilitating credential and telemetry exfiltration. The package tarball contains only a package.json file with no main entrypoint or legitimate functionality, indicating it is designed solely to trigger malicious beaconing. The package poses a high risk of system compromise, especially if installed unintentionally via dependency confusion attacks.

Potential Impact

Systems that install this package are considered fully compromised. The malicious script can exfiltrate sensitive system information and potentially allow attackers to gain control over the affected computer. All secrets and keys stored on the compromised system should be rotated immediately from a secure environment. Removing the package alone may not eliminate all malicious artifacts or backdoors introduced by the package installation.

Mitigation Recommendations

There is no official patch or fix available for this package. The primary mitigation is to avoid installing this package entirely. If the package has been installed, remove it immediately and assume the system is compromised. Rotate all secrets and keys from a different, secure system. Conduct a thorough investigation and remediation of the affected system, as removal of the package does not guarantee full cleanup of malicious components.

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-2025-5016
Osv Schema Version
1.7.4
Aliases
["GHSA-r9cf-374f-9q9v","GHSA-wwc9-c8g2-66r2"]
Ecosystems
["npm"]

Threat ID: 6a96f31cacd9273b49e49add

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

Last enriched: 09/08/2026, 03:23:16 UTC

Last updated: 10/04/2026, 05:32:31 UTC

Views: 133

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