Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@neargate/sdk

Latest version: v0.1.0

Overview

Last scanned
12 Nov 2026
Published
12 Nov 2026
npm package Publisher: freeairdropid
0 Stars
0 Forks
2 Versions
TypeScript Repo language

Scan summary

@neargate/sdk was last scanned on 12 Nov 2026 at version 0.1.0. Risk score 45 of 100 (medium). High-severity rules fired.

  • Releases: 2 versions, all published on 12 Nov 2026.
  • Findings: 1 rule fired in version 0.1.0 (1 high). The score describes this version only.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 12 Nov 2026 1 rule fired
0.0.0-stage 12 Nov 2026 Not shown

Rules fired in 0.1.0: 1

Findings

1 High

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Encoded data placed in a DNS lookup

A DNS lookup command (nslookup, dig or host) takes its query name from a subshell that first encodes the data, for example with base64 or xxd. Encoding the name turns a lookup into a way to send data to the nameserver of the queried domain. Ordinary diagnostic lookups have no encoding step.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@neargate/sdk — pay x402 APIs in native NEAR

The NearGate client SDK for Node. Read the on-chain neargate-registry catalog, pay a gateway's HTTP 402 invoice in native NEAR and get the response, with the same code the neargate CLI runs. Three ways to pay:

  • deposit (default): call the registry's pay with price + the 0.002 NEAR storage fee attached;
  • escrow: pay_from_escrow debits a balance you prepaid, so a restricted agent key can pay;
  • gasless: sign that pay_from_escrow as a NEP-366 delegate and let the gateway relay it and pay the gas.

The defaults target the live deployment on NEAR testnet: the registry neargate-app-registry.testnet and the gateway https://neargate-gateway-production.up.railway.app.

npm install @neargate/sdk

Node 22.22.2 or later, ESM only.

Read the catalog (no key)

import { createNearGateChain, formatNear } from '@neargate/sdk';

// Live mode on NEAR testnet and the deployed registry. Options: mode, network, rpcUrl, registryId.
const chain = createNearGateChain();

for (const s of await chain.listServices()) {
  const score = await chain.getScore(s.id);
  console.log(s.id, s.name, formatNear(s.priceYocto), `${score.successCalls}/${score.totalCalls}`, s.endpointUrl);
}

Pay for a call

import { createAgentGateClient, createNearGateChain, nearToYocto } from '@neargate/sdk';

const chain = createNearGateChain();
const client = createAgentGateClient({
  chain,
  // The key is read from ~/.near-credentials/testnet/you.testnet.json; or pass keyPath / secretKey.
  signer: { kind: 'near', accountId: 'you.testnet' },
  maxYocto: nearToYocto('0.02'), // refuse any invoice above 0.02 NEAR in total
  expectedServiceId: 1,
});

const res = await client.fetchPaid('https://neargate-gateway-production.up.railway.app/svc/1');
console.log(res.status, res.txHash, res.body);

fetchPaid requests the URL, validates the 402 invoice (network, registry, service, budget), pays it, retries with the X-PAYMENT proof and returns the response. Every refusal before paying throws an AgentGateError with a stable code (BUDGET_EXCEEDED, NETWORK_MISMATCH, REGISTRY_MISMATCH, FORBIDDEN_HOST, …).

Never pay twice for one call. If the payment went through but the gateway did not serve the call, fetchPaid throws PaidNotServedError (PAID_NOT_SERVED), or GaslessNotServedError on the gasless rail, carrying the proof to present again. Do not pay a fresh invoice for it.

From an escrow, or gasless
const signer = { kind: 'near', accountId: 'you.testnet' } as const;
const maxYocto = nearToYocto('0.02');
// The first deposit keeps 0.002 NEAR as the escrow's storage fee.
await chain.depositEscrow(nearToYocto('1'), signer);

const escrowClient = createAgentGateClient({ chain, signer, maxYocto, payFrom: 'escrow' });
const gaslessClient = createAgentGateClient({ chain, signer, maxYocto, payFrom: 'escrow', gasless: true });

chain.escrowOf(accountId) reads the balance. A gasless call needs a gateway that offers a relayer (extra.relayer in its 402); the hosted gateway does.

What is in the package

One bundled ES module with its types:

  • the paying client: createAgentGateClient, PaidNotServedError, GaslessNotServedError, parsePaymentRequired, fetchReceipt, waitForReceipt;
  • the chain clients: createNearGateChain (from options; { mode: 'mock' } uses the offline devnet of the repository's npm run dev), createChainClient (from a full loadConfig configuration), LiveNearClient and MockChainHttpClient;
  • the shared vocabulary: loadConfig, the hosted defaults (DEFAULT_REGISTRY_CONTRACT_ID, DEFAULT_GATEWAY_URL), NEAR amounts (nearToYocto, formatNear), the x402 types and AgentGateError.

The protocol, every error code and the security model are documented at https://neargate-dashboard-production.up.railway.app/docs. Source: https://github.com/nnovida/neargate.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @neargate/sdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PolinRider Returns
npm

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229