MAL-2026-6588: Malicious code in endpointmap (npm)
The npm package 'endpointmap' versions 2.1.0 and 3.0.0 contains malicious code designed to evade detection by splitting encoded data and its decoder across two packages. The package exports opaque byte arrays that are never used internally but rely on an unpinned dependency 'bytecraft' to decode them at runtime. This design allows an attacker to update the 'bytecraft' package independently to execute arbitrary code when 'endpointmap' is installed, without requiring a new release of 'endpointmap' itself.
AI Analysis
Technical Summary
The 'endpointmap' npm package (versions 2.1.0 and 3.0.0) advertises itself as a REST endpoint registry but includes a two-package smuggle pattern. It exports two non-printable byte arrays that are not used internally, while declaring an unpinned dependency on 'bytecraft'. The 'bytecraft' package is never imported by 'endpointmap' code but is installed alongside it, enabling the decoding and execution of the opaque data at runtime. This separation allows malicious payload delivery through the 'bytecraft' package, which can be updated independently to introduce malicious behavior without modifying 'endpointmap'. This pattern is a known evasion technique to bypass per-package review.
Potential Impact
Users installing 'endpointmap' versions 2.1.0 or 3.0.0 are exposed to potentially malicious code execution via the unpinned 'bytecraft' dependency. Because 'bytecraft' is not fixed to a specific version, an attacker can publish a malicious version of 'bytecraft' that will be installed automatically, enabling arbitrary code execution or other malicious actions during installation or runtime. This compromises the security of any environment that installs these versions of 'endpointmap'.
Mitigation Recommendations
No official patch or fix is currently documented for this issue. Users should avoid installing 'endpointmap' versions 2.1.0 and 3.0.0. If already installed, remove these versions and audit dependencies for unpinned or suspicious packages like 'bytecraft'. Pin dependencies explicitly to known safe versions and monitor for updates from the package maintainers or security advisories for any official remediation. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
MAL-2026-6588: Malicious code in endpointmap (npm)
Description
The npm package 'endpointmap' versions 2.1.0 and 3.0.0 contains malicious code designed to evade detection by splitting encoded data and its decoder across two packages. The package exports opaque byte arrays that are never used internally but rely on an unpinned dependency 'bytecraft' to decode them at runtime. This design allows an attacker to update the 'bytecraft' package independently to execute arbitrary code when 'endpointmap' is installed, without requiring a new release of 'endpointmap' itself.
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 'endpointmap' npm package (versions 2.1.0 and 3.0.0) advertises itself as a REST endpoint registry but includes a two-package smuggle pattern. It exports two non-printable byte arrays that are not used internally, while declaring an unpinned dependency on 'bytecraft'. The 'bytecraft' package is never imported by 'endpointmap' code but is installed alongside it, enabling the decoding and execution of the opaque data at runtime. This separation allows malicious payload delivery through the 'bytecraft' package, which can be updated independently to introduce malicious behavior without modifying 'endpointmap'. This pattern is a known evasion technique to bypass per-package review.
Potential Impact
Users installing 'endpointmap' versions 2.1.0 or 3.0.0 are exposed to potentially malicious code execution via the unpinned 'bytecraft' dependency. Because 'bytecraft' is not fixed to a specific version, an attacker can publish a malicious version of 'bytecraft' that will be installed automatically, enabling arbitrary code execution or other malicious actions during installation or runtime. This compromises the security of any environment that installs these versions of 'endpointmap'.
Mitigation Recommendations
No official patch or fix is currently documented for this issue. Users should avoid installing 'endpointmap' versions 2.1.0 and 3.0.0. If already installed, remove these versions and audit dependencies for unpinned or suspicious packages like 'bytecraft'. Pin dependencies explicitly to known safe versions and monitor for updates from the package maintainers or security advisories for any official remediation. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6588
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed6527e9c79719937db5
Added to database: 06/29/2026, 22:10:45 UTC
Last enriched: 06/29/2026, 22:33:56 UTC
Last updated: 06/30/2026, 00:45:32 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.