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

@solana/kit

Latest version: v8.7.0-canary-20261130172553

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: solana-devs
704 Stars
230 Forks
81 Versions
14.8M Downloads
TypeScript Repo language

Scan summary

@solana/kit was last scanned on 30 Nov 2026 at version 8.7.0-canary-20261130172553. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 81 versions; the latest 5 were published within 4 days (27–30 Nov 2026).
  • Findings: No rules fired in version 8.7.0-canary-20261130172553.
  • Downloads: 14,759,730 downloads.

Versions

81 versions published
Versions and the rules that fired in each
VersionPublishedStatus
8.7.0-canary-20261130172553 LATEST 30 Nov 2026 No rules fired
8.7.0-canary-20261130145109 30 Nov 2026 No rules fired
8.7.0-canary-20261130094438 30 Nov 2026 No rules fired
8.7.0-canary-20261130094624 30 Nov 2026 Not shown
8.7.0-canary-20261127094404 27 Nov 2026 Not shown

No rules fired in 8.7.0-canary-20261130172553

Findings

Findings for v8.7.0-canary-20261130172553. 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.

The score describes 8.7.0-canary-20261130172553; other versions have their own rules, not their own score.

README

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

npm npm-downloads

code-style-prettier

@solana/kit

This is the JavaScript SDK for building Solana apps for Node, web, and React Native.

Functions

In addition to re-exporting functions from packages in the @solana/* namespace, this package offers additional helpers for building Solana applications, with sensible defaults.

airdropFactory({rpc, rpcSubscriptions})

Returns a function that you can call to airdrop a certain amount of Lamports to a Solana address.

import { address, airdropFactory, createSolanaRpc, createSolanaRpcSubscriptions, devnet, lamports } from '@solana/kit';

const rpc = createSolanaRpc(devnet('http://127.0.0.1:8899'));
const rpcSubscriptions = createSolanaRpcSubscriptions(devnet('ws://127.0.0.1:8900'));

const airdrop = airdropFactory({ rpc, rpcSubscriptions });

await airdrop({
    commitment: 'confirmed',
    recipientAddress: address('FnHyam9w4NZoWR6mKN1CuGBritdsEWZQa4Z4oawLZGxa'),
    lamports: lamports(10_000_000n),
});

[!NOTE] This only works on test clusters.

createReactiveStoreWithInitialValueAndSlotTracking(config)

Creates a ReactiveStreamStore that combines an initial-value source with an ongoing stream source to keep its state up to date. Uses slot-based comparison to ensure only the most recent value is kept, regardless of whether it came from the initial value or a stream notification.

The returned store is compatible with React's useSyncExternalStore, Svelte stores, Solid's from(), and any other reactive primitive that expects a { subscribe, getState } contract.

import {
    address,
    createReactiveStoreWithInitialValueAndSlotTracking,
    createSolanaRpc,
    createSolanaRpcSubscriptions,
} from '@solana/kit';

const rpc = createSolanaRpc('http://127.0.0.1:8899');
const rpcSubscriptions = createSolanaRpcSubscriptions('ws://127.0.0.1:8900');
const myAddress = address('FnHyam9w4NZoWR6mKN1CuGBritdsEWZQa4Z4oawLZGxa');

const balanceStore = createReactiveStoreWithInitialValueAndSlotTracking({
    initialValueSource: rpc.getBalance(myAddress, { commitment: 'confirmed' }),
    initialValueMapper: lamports => lamports,
    streamSource: rpcSubscriptions.accountNotifications(myAddress),
    streamValueMapper: ({ lamports }) => lamports,
});

const unsubscribe = balanceStore.subscribe(() => {
    const state = balanceStore.getState();
    if (state.status === 'error') console.error('Error:', state.error);
    else if (state.status === 'loaded') console.log('Balance:', state.data.value);
});

// Start fetching, cancelling after 60 seconds:
balanceStore.withSignal(AbortSignal.timeout(60_000)).connect();
decompileTransactionMessageFetchingLookupTables(compiledTransactionMessage, rpc, config)

Returns a TransactionMessage from a CompiledTransactionMessage. If any of the accounts in the compiled message require an address lookup table to find their address, this function will use the supplied RPC instance to fetch the contents of the address lookup table from the network.

fetchLookupTables(lookupTableAddresses, rpc, config)

Given a list of addresses belonging to address lookup tables, returns a map of lookup table addresses to an ordered array of the addresses they contain.

createClientWithGetMinimumBalanceFromRpc(rpc)

Creates a ClientWithGetMinimumBalance from a raw Rpc object. The returned client computes the minimum balance for rent exemption using the getMinimumBalanceForRentExemption RPC method, adding the 128-byte account header by default (pass { withoutHeader: true } to compute the data-only amount). This is a convenience helper for consumers that only have a raw Rpc object rather than a Kit client.

createClientWithFetchAccountsFromRpc(rpc)

Creates a ClientWithFetchAccounts from a raw Rpc object. The returned client fetches the encoded content of accounts from their addresses, dispatching on the number of requested addresses: a single account uses getAccountInfo, multiple accounts use getMultipleAccounts in a single round-trip, and an empty list short-circuits to an empty array without any RPC call. Because a raw Rpc object's capabilities cannot be detected at runtime, the Rpc is required to support both methods. This is a convenience helper for consumers that only have a raw Rpc object rather than a Kit client.

createClientWithInterfacesFromRpc(rpc)

Creates a client from a raw Rpc object, filling in whichever client interfaces the RPC supports — a ClientWithGetMinimumBalance when it supports getMinimumBalanceForRentExemption, and a ClientWithFetchAccounts when it supports both getAccountInfo and getMultipleAccounts. The return type narrows accordingly. Since a raw Rpc object's capabilities cannot be detected at runtime, the returned object always carries both methods at runtime; the return type is what restricts them to the interfaces your RPC declares. Note that this does not create a fully-fledged Kit client; use createClient().use(solanaRpc(...)) for that.

Compute Unit Limit Estimation

Correctly budgeting a compute unit limit for your transaction message can increase the probability that your transaction will be accepted for processing. If you don't declare a compute unit limit on your transaction, validators will assume an upper limit of 200K compute units (CU) per instruction.

Since validators have an incentive to pack as many transactions into each block as possible, they may choose to include transactions that they know will fit into the remaining compute budget for the current block over transactions that might not. For this reason, you should set a compute unit limit on each of your transaction messages, whenever possible.

estimateComputeUnitLimitFactory({rpc})

Returns a function that estimates the compute units consumed by a transaction message by simulating it. The estimator temporarily sets the compute unit limit to the maximum (1,400,000) before simulating, so the simulation does not fail due to compute unit exhaustion.

import { createSolanaRpc, estimateComputeUnitLimitFactory, setTransactionMessageComputeUnitLimit } from '@solana/kit';

const rpc = createSolanaRpc('http://127.0.0.1:8899');
const estimateComputeUnitLimit = estimateComputeUnitLimitFactory({ rpc });

const computeUnitsEstimate = await estimateComputeUnitLimit(transactionMessage);

const transactionMessageWithComputeUnitLimit = setTransactionMessageComputeUnitLimit(
    computeUnitsEstimate,
    transactionMessage,
);

[!NOTE] For legacy and v0 transactions, if the transaction message does not already have a SetComputeUnitLimit instruction, the estimator will add one before simulation. This ensures that the compute unit consumption of the instruction itself is included in the estimate.

estimateAndSetComputeUnitLimitFactory(estimator)

Returns a function that estimates the compute unit limit for a transaction message and sets it directly on the message. If the message already has an explicit compute unit limit (one that is not the provisory value of 0 or the maximum of 1,400,000), the message is returned unchanged. This is designed to work with fillTransactionMessageProvisoryComputeUnitLimit.

import { estimateAndSetComputeUnitLimitFactory, estimateComputeUnitLimitFactory } from '@solana/kit';

const estimator = estimateComputeUnitLimitFactory({ rpc });
const estimateAndSetComputeUnitLimit = estimateAndSetComputeUnitLimitFactory(estimator);

const updatedMessage = await estimateAndSetComputeUnitLimit(transactionMessage);
fillTransactionMessageProvisoryComputeUnitLimit(transactionMessage)

Sets the compute unit limit to a provisory value of 0 if no compute unit limit is currently set on the transaction message. This is useful during transaction construction to reserve space for a compute unit limit that will later be replaced with an actual estimate.

import { fillTransactionMessageProvisoryComputeUnitLimit } from '@solana/kit';

const messageWithProvisoryLimit = fillTransactionMessageProvisoryComputeUnitLimit(transactionMessage);

[!WARNING] The compute unit estimate is just that -- an estimate. The compute unit consumption of the actual transaction might be higher or lower than what was observed in simulation. Unless you are confident that your particular transaction message will consume the same or fewer compute units as was estimated, you might like to augment the estimate by either a fixed number of CUs or a multiplier.

[!NOTE] If you are preparing an unsigned transaction, destined to be signed and submitted to the network by a wallet, you might like to leave it up to the wallet to determine the compute unit limit. Consider that the wallet might have a more global view of how many compute units certain types of transactions consume, and might be able to make better estimates of an appropriate compute unit budget.

sendAndConfirmTransactionFactory({rpc, rpcSubscriptions})

Returns a function that you can call to send a blockhash-based transaction to the network and to wait until it has been confirmed.

import { isSolanaError, sendAndConfirmTransactionFactory, SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED } from '@solana/kit';

const sendAndConfirmTransaction = sendAndConfirmTransactionFactory({ rpc, rpcSubscriptions });

try {
    await sendAndConfirmTransaction(transaction, { commitment: 'confirmed' });
} catch (e) {
    if (isSolanaError(e, SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED)) {
        console.error('This transaction depends on a blockhash that has expired');
    } else {
        throw e;
    }
}
sendAndConfirmDurableNonceTransactionFactory({rpc, rpcSubscriptions})

Returns a function that you can call to send a nonce-based transaction to the network and to wait until it has been confirmed.

import {
    isSolanaError,
    sendAndConfirmDurableNonceTransactionFactory,
    SOLANA_ERROR__INVALID_NONCE,
    SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND,
} from '@solana/kit';

const sendAndConfirmNonceTransaction = sendAndConfirmDurableNonceTransactionFactory({ rpc, rpcSubscriptions });

try {
    await sendAndConfirmNonceTransaction(transaction, { commitment: 'confirmed' });
} catch (e) {
    if (isSolanaError(e, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND)) {
        console.error(
            'The lifetime specified by this transaction refers to a nonce account ' +
                `\`${e.context.nonceAccountAddress}\` that does not exist`,
        );
    } else if (isSolanaError(e, SOLANA_ERROR__INVALID_NONCE)) {
        console.error('This transaction depends on a nonce that is no longer valid');
    } else {
        throw e;
    }
}
sendTransactionWithoutConfirmingFactory({rpc, rpcSubscriptions})

Returns a function that you can call to send a transaction with any kind of lifetime to the network without waiting for it to be confirmed.

import {
    sendTransactionWithoutConfirmingFactory,
    SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE,
} from '@solana/kit';

const sendTransaction = sendTransactionWithoutConfirmingFactory({ rpc });

try {
    await sendTransaction(transaction, { commitment: 'confirmed' });
} catch (e) {
    if (isSolanaError(e, SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE)) {
        console.error('The transaction failed in simulation', e.cause);
    } else {
        throw e;
    }
}

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 @solana/kit

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

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?

Frame 2085668439 (1)
Group 1261154229