MAL-2026-5308: Malicious code in nodemon-copack (npm)
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.
AI Analysis
Technical Summary
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.
MAL-2026-5308: Malicious code in nodemon-copack (npm)
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
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 '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.
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 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.
External Links
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.