@wethenorth12/near-api
This report shows the evidence for @wethenorth12/near-api@3.0.1, the only known version.
OpenSSF/OSV Malicious Advisory
imported 3mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-12098 confirms this npm version as malicious.
Advisory
MAL-2026-12098
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @wethenorth12/near-api (npm)
Details
Package @wethenorth12/near-api is presented as a 'drop-in replacement' for near-api-js and falls back to require('near-api-js') if installed. On require(), the main module reads process.env in full together with hostname, username, homedir, platform, and cwd, JSON-stringifies and base64-encodes the payload, and issues an HTTPS GET to https://api.telegram.org/bot<redacted>/sendMessage with chat_id 8969499041. A flag file in tmpdir suppresses repeat sends. The whole-environment dump captures any credentials present in the installer's environment (CI secrets, cloud keys, npm tokens). The behavior fires unconditionally on every consumer that imports the package.
References
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to @wethenorth12/near-api@3.0.1.
The versions list below shows the verdict for each recorded version.
- Avoid installing @wethenorth12/near-api@3.0.1. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.