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…

Malicious code in endpointmap (npm)

0
High
Published: 06/29/2026 (06/29/2026, 08:52:54 UTC)
Source: GCVE Database
Product: endpointmap

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (aa2ddbcbdd90508af14415a021644c1ab8a57e432b526425e4c5128b23f897bb) endpointmap advertises itself as a REST endpoint registry but exhibits a two-package smuggle pattern. lib/registry.js exports two non-printable byte arrays (`_ep` of length 36, `_p` of length 7) annotated as 'Endpoint host segment' / 'Endpoint path segment', with a comment claiming they are 'processed at runtime by the consumer for portability.' Neither array is read anywhere in endpointmap's own code — index.js only exposes the registry object — and the bytes are opaque (XOR-shaped, with no key shipped in this package). At the same time, package.json declares `"bytecraft": "*"` as a dependency. endpointmap's source never `require`s bytecraft; the only effect of the declaration is to force installation of whatever `bytecraft@latest` happens to be at install time. The combination — staged encoded data in this package plus an unpinned, never-imported sibling that can be updated to act as the decoder/runtime — is the canonical 'data here, decoder there' split designed to evade per-package review. An installer of endpointmap is exposed to whatever bytecraft resolves to at install/require time, including future malicious versions, without endpointmap itself ever needing another release. ## Source: ghsa-malware (7cf1ae7dc26d8ebda1199b5e88d8fb0d49e4db8f72ff01b5f2b0dea88cf4a8a0) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
endpointmap
Affected versions
=2.1.0=3.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: 06/29/2026, 22:33:56 UTC

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.

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-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: 07/31/2026, 02:58:34 UTC

Views: 47

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