Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

MAL-2026-5308: Malicious code in nodemon-copack (npm)

0
Critical
Published: 06/08/2026 (06/08/2026, 09:00:21 UTC)
Source: GCVE Database
Product: nodemon-copack

Description

The npm package 'nodemon-copack' impersonates the legitimate 'nodemon' project by copying its source code and metadata, including homepage, author, and repository fields. It introduces two runtime dependencies, 'regex-js' and 'chai', which are not used in the package code but are pulled into the installer's dependency graph. This pattern suggests dependency smuggling, where the actual malicious payload may reside in these transitive dependencies. Although the package itself does not contain direct malicious actions such as exfiltration or remote code execution, the presence of these smuggled dependencies poses a risk. The package versions 3.1.15 and 3.1.16 are affected. The package should be considered malicious, and any system with it installed should be treated as compromised.

Affected software

npmghsa
nodemon-copack
Affected versions
=3.1.15=3.1.16

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: 07/10/2026, 10:09:16 UTC

Technical Analysis

The 'nodemon-copack' npm package is a malicious impersonation of the legitimate 'nodemon' project. It copies the legitimate project's source and metadata to deceive users. It declares two runtime dependencies, 'regex-js' and 'chai', which are not referenced in the code, indicating a dependency-smuggling technique. This allows potentially malicious code to be introduced via these dependencies during installation. No direct malicious behavior is present in the package itself, but the risk depends on what the smuggled dependencies contain at install time. The package versions =3.1.15 and =3.1.16 are affected. Systems with this package installed should be considered fully compromised, and all secrets and keys should be rotated.

Potential Impact

The primary impact is namespace impersonation and the injection of transitive dependencies that may contain malicious code. Although the package itself does not perform exfiltration, remote code execution, or credential access, the smuggled dependencies could introduce such risks. According to the GHSA advisory, any computer with this package installed should be considered fully compromised, necessitating immediate secret and key rotation. Removing the package alone may not eliminate all malicious software resulting from its installation.

Mitigation Recommendations

There is no official patch or fix available for this malicious package. The recommended mitigation is to immediately remove the 'nodemon-copack' package from any affected systems. Because the package may have compromised the system, all secrets and keys stored on the computer should be rotated from a separate, trusted device. Monitor for any signs of compromise and consider a full system audit or rebuild if this package was installed.

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-5308
Osv Schema Version
1.7.4
Aliases
["GHSA-pw2c-3h97-j57f"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50ba9168715ace435822ff

Added to database: 07/10/2026, 09:25:37 UTC

Last enriched: 07/10/2026, 10:09:16 UTC

Last updated: 07/10/2026, 10:09:16 UTC

Views: 2

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