Sample audits · Earlier documentation audits

Jupiter developer documentation

Summary card for this audit: 95 findings after review, 2 High, 26 Medium, 47 Low, 20 Info
Auditeddevelopers.jup.ag documentation, all pages, pages fetched 11 October 2026
Date11 October 2026 (audited again; first audit 31 May 2026)
How it ranlocal run on our workstation, full audit, Standard review
Verdict after reviewFail (Fail if a High finding remains after review, otherwise Pass with notes)

Related: Jupiter developer docs: pages changed or added since May

2
High after review
26
Medium after review
47
Low after review
20
Info after review
1
excluded on review

Compared with the first audit

The pages were fetched again on 11 October 2026 and audited in full; our first audit used the copy of 28 May 2026 and an earlier method, so its severities are shown as first rated. Each finding of the first audit (31 May 2026) was checked again against the pages audited now. 21 findings in the first audit; 12 still open (2 found again, 10 not reported again but still present); 6 fixed upstream since; 1 not in the pages, so the first audit was wrong there; 2 could not be compared. This audit has 95 findings after review, 93 of them new.

First auditFindingRating then (as first rated, earlier method)NowIn this audit
#F-1Every page emits a doc-index banner pointing to legacy host; sitemap on legacy hostCriticalFixed upstream since#1
#F-2Ultra surface billable but reference docs absentCriticalFixed upstream sincenot reported again
#F-314 OpenAPI titles, no naming schemeHighStill opennot reported again
#F-4info.version incoherent, quoted outlierHighStill opennot reported again
#F-5Trigger v1 and v2 both active, no migration guidanceHighStill opennot reported again
#F-6Six Trigger v2 endpoints declare dual-scheme security, undocumentedHighNot in the code: the first audit was wrong herenot reported again
#F-7Schema definitions duplicated across specsHighStill open#51
#F-8Portal hostname inconsistencyMediumFixed upstream sincenot reported again
#F-9Banner positioned before H1MediumStill open#1
#F-10Singleton /tx/v1 host-pathMediumFixed upstream sincenot reported again
#F-11Price API bare-host server URLMediumStill opennot reported again
#F-12Prediction API BETA, no GA targetMediumStill opennot reported again
#F-13107 endpoint pages absent from llms.txtMediumStill opennot reported again
#F-14Sitemap on legacy hostMediumFixed upstream sincenot reported again
#F-15Changelog "Danger: Action Required" past deadlineMediumCould not be comparednot reported again
#F-1615 broken internal linksMediumFixed upstream sincenot reported again
#F-17llms-full.txt is 1 MBLowStill opennot reported again
#F-18Lock and Perps shallowLowStill opennot reported again
#F-19JSX wrappers everywhereLowStill opennot reported again
#F-20Migration pages strandedLowStill opennot reported again
#F-21Legacy host returns 200 + 301, not 410LowCould not be comparednot reported again
How to read this page

Each finding keeps the number it has in the audit report. The rating shown first is the one after review; the first automated rating is listed with it. 60 findings were first rated Medium or High; 28 of them are Medium or High after review. Text marked "From the report" is quoted from the audit report; fixes are suggestions and were not tested. Locations are paths inside the fetched copy of the documentation.

High after review (2)

55. High Earn CPI example invokes an unchecked program account
First rating: High · Reviewed rating: High · Review: confirmed · new in this audit
Location: lend/earn/cpi.md:97 (struct field at line 64)
From the report
Evidence
pub lending_program: UncheckedAccount<'info>,
...
program_id: *self.lending_program.key,
Why it matters

a program built from this example calls whatever program the caller passes, and forwards the user's signer privilege to it. An attacker can supply their own program and spend from the user's token accounts.

Suggested fix, not tested

pin lending_program to the published program id with an address constraint or a typed Program account. Do the same for the liquidity, token, associated-token and system programs.

Review: lending_program: UncheckedAccount (:64, :180) is used as program_id (:97), with the signer forwarded. Same text in the earlier copy.

56. High Borrow CPI example invokes an unchecked program account
First rating: High · Reviewed rating: High · Review: confirmed · new in this audit
Location: lend/borrow/cpi.md:80 (field at line 54)
From the report
Evidence
pub vaults_program: UncheckedAccount<'info>,
...
program_id: *self.vaults_program.key,
Why it matters

this is the same arbitrary-invocation hole as finding 55.

Suggested fix, not tested

pin vaults_program and its sibling program accounts to their known ids before invoking.

Review: Same pattern as #55.

Medium after review (26)

3. Medium Lend samples report success without checking the transaction result
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: lend/borrow/withdraw.md:109; also borrow.md:111, deposit.md:114, repay.md:111, liquidation.md:100, flashloan/execute.md, wallets/privy-earn.md. Without any confirmation at all: lend/advanced/unwind.md:174, vault-swap.md:190, repay-with-collateral-max-withdraw.md, native-staked-vault/*.
From the report
Evidence
await connection.confirmTransaction(signature, "confirmed");
console.log("Withdraw successful! Signature:", signature);
Why it matters

confirmTransaction does not throw when the transaction fails on-chain. A failed borrow, repay or unwind is therefore printed as successful, and the advanced guides print success before the transaction has even landed. These samples move leveraged positions.

Suggested fix, not tested

confirm with blockhash and lastValidBlockHeight, check value.err, and only then report success.

Review: confirmTransaction(signature,"confirmed") is followed by "successful" with no value.err check. unwind, vault-swap, repay-with-collateral and native-staked-vault print success after a bare send.

9. Medium Trigger quick-start samples use the deprecated 24-hour token mode
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: trigger/create-order.md:69; also trigger/dca.md:87
From the report
Evidence
const { token } = await fetch(`${BASE}/auth/verify`, {
  body: JSON.stringify({ type: "message", walletPubkey: owner, signature: bs58.encode(signature) }),
Why it matters

new integrators copy the mode that the docs say will be removed. They will break when it is removed.

Suggested fix, not tested

send authMode: "access_refresh", read accessToken and refreshToken, and add refresh handling.

Review: The verify body has no authMode, the comment says "24h JWT", and the page destructures { token }.

10. Medium Trigger lifecycle page contradicts the authentication page
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: trigger/lifecycle.md:53 (also line 22, errors.md, best-practices.md, manage-orders.md)
From the report
Evidence

Evidence: The token is valid for 24 hours. There is no refresh endpoint: when it expires, repeat the challenge-response flow.

Why it matters

the authentication page documents 15-minute tokens with /refresh. Integrators who follow the stale page force a wallet signature every time a token expires.

Suggested fix, not tested

rewrite these pages for the access-plus-refresh flow and link to the authentication page.

Review: "valid for 24 hours. There is no refresh endpoint" against 15 minutes plus /refresh.

13. Medium JupUSD mint sample passes the wrong mint and token program
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: jupusd/index.md:181 (identical copy in jupusd.md:181; also the Redeem sample at lines 265-266)
From the report
Evidence
lpMint: configAccount.data.mint,
vault: vaultAddress,
vaultMint: configAccount.data.mint,
Why it matters

the vault's collateral mint is set to the JupUSD mint, and the collateral token program is taken from the JupUSD config. As published, the instruction either fails or runs the collateral under the wrong token program.

Suggested fix, not tested

use vaultAccount.data.mint and the vault's own token program, unwrap the PDA tuple, and use one field-name style.

Review: The mint example uses vaultMint: configAccount.data.mint (same as lpMint). The redeem example uses vaultAccount.data.mint. Token program and field style are mixed.

37. Medium Wallet-setup snippets default a missing key to empty and do not parse
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: ultra/execute-order.md:47; also ultra/add-fees-to-ultra.md:241, studio/create-token.md:42, studio/claim-fee.md:60
From the report
Evidence

Evidence: const wallet = Keypair.fromSecretKey(bs58.decode(process.env.PRIVATE_KEY || '')));

Why it matters

the first step of the main Ultra path has an extra parenthesis, a missing bs58 import and mixed import/require. A missing key is turned into an empty string instead of a clear error.

Suggested fix, not tested

import bs58, use import 'dotenv/config', balance the parentheses, and fail at startup if the variable is not set.

Review: Extra ), no bs58 import, mixed import/require, || ''.

43. Medium Send sample discards the invite code after funding the invite
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: send/craft-send.md:56; also send/invite-code.md:191
From the report
Evidence

Evidence: const invite_code = await create_invite_code(); (never stored, shown or returned)

Why it matters

the invite is funded, but the code is lost. The recipient cannot claim it, and the clawback sample (which reads the code from the environment) cannot run. Funds stay locked until the invite expires.

Suggested fix, not tested

persist or display the code before broadcasting, and publish one end-to-end send, claim and clawback example.

Review: Created at :56 and never shown or stored. Clawback needs INVITE_CODE. Funds return at expiry (send/index.md:42).

44. Medium Ultra-to-Swap migration guide gives a wrong base URL and claims no differences
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: swap/migration/ultra-to-order.md:19
From the report
Evidence

Evidence: The request parameters and response format are identical. Update the base URL and you are done. (line 15: Base URL: https://ultra-api.jup.ag )

Suggested fix, not tested

use the current Ultra base path. List the real differences (path, fields, error codes, fee model) and add a verification step.

Review: The page gives https://ultra-api.jup.ag; the Ultra pages use https://api.jup.ag/ultra/v1. "Identical parameters" is false: Swap V2 /order adds swapMode, priorityFeeLamports, jitoTipLamports, broadcastFeeType, excludeRouters, maxSupportedTransactionVersion.

57. Medium A stolen session token can change live orders, but the page says it cannot cause loss
First rating: High · Reviewed rating: Medium · Review: rated too high · new in this audit
Location: trigger/authentication.md:331 (capability listed at line 324)
From the report
Evidence

Evidence: Updating a price order's trigger price or slippage does not require transaction signing. and so a leaked token alone cannot result in loss of funds.

Why it matters

whoever holds a stolen token can move the trigger and raise slippage (up to 10,000 bps) on a funded order. The keeper then executes as instructed, and the value can be extracted from the user's funds. The security statement tells integrators this risk does not exist.

Suggested fix, not tested

require a wallet signature or another step-up proof for price and slippage edits, or cap what a token-only edit can set. Correct the claim.

Review: Line 324 discloses the edit capability; line 331 is about funds withdrawal. A real wording conflict, but no code that loses money. Slippage 0-10000 is documented.

58. Medium Send invite schema contradicts its own examples
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: api-reference/send/craft-send.md:97; also openapi-spec/send/send.yaml:73 and :379, pending-invites.md, invite-history.md
From the report
Evidence

Evidence: - Unix timestamp of when the invite will expire with example expiry: '2025-03-22T10:30:00.000Z', and confirmed: type: integer with example confirmed: true

Why it matters

clients parse the time at which funds are clawed back incorrectly, and typed clients reject the documented responses.

Suggested fix, not tested

make type, description and example agree for expiry and confirmed.

Review: expiry is string and "Unix timestamp" with an ISO example; confirmed is integer with example true.

60. Medium JUICED sample amount is 1000 times the stated value
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: jupusd/juiced.md:92 (also line 159)
From the report
Evidence

Evidence: amount: "1000000000", // Amount in lamports (1 JupUSD = 1e9)

Why it matters

the tokens page lists JupUSD with 6 decimals, so this deposits or withdraws 1000 JupUSD, not 1.

Suggested fix, not tested

derive base units from the mint's decimals and correct the comments.

Review: JupUSD is 6 decimals (tokens/verification.md:24), so 1000000000 is 1000.

61. Medium JUICED page contradicts the rest of the Lend documentation
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: jupusd/juiced.md:75; also lines 13 and 158
From the report
Evidence

Evidence: The Lend API ... returns a signed transaction that you submit to the network.

Why it matters

the spec returns an unsigned transaction. The SDK names used here (getDepositIx, getLendingTokens) appear nowhere else in the Lend docs. "The rate never decreases" contradicts the page's own risk section.

Suggested fix, not tested

align this page with the Lend API and SDK reference, and qualify the rate claim.

Review: "returns a signed transaction" against "unsigned" (api-reference/lend/earn/deposit.md:7). getDepositIx and getLendingTokens appear only here. "never decreases" against the qualified risk text.

62. Medium Earn API page samples do not run
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: lend/earn/api.md:59; also lines 145-247, 309, 380
From the report
Evidence

Evidence: require('dotenv').config(); const wallet = Keypair.fromSecretKey(bs58.decode(... and await ( await ( await fetch(...) ) ) with no .json()

Why it matters

bs58 is never imported, the response bodies are never parsed, a single-instruction response is mapped as a list, and one fetch call is missing a comma. The documented flow fails at every step.

Suggested fix, not tested

fix the imports, parse responses with .json(), match the documented response shapes, and run each sample before publishing.

Review: No bs58 import, no .json() on four fetches, depositIx.instructions.map, and a missing comma at 380-381.

63. Medium Earn withdraw sample is not valid code and uses a wrong mint
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: lend/earn/withdraw.md:32
From the report
Evidence
await getWithdrawIxs({
    new Connection("https://api.mainnet-beta.solana.com"),
    asset: new PublicKey("9a7qBeHBtjKk46YhfPJmBQG5zPmk4TcqpYbdJmJqcMup"), // USDC Mint
Suggested fix, not tested

use named properties, the real USDC mint, and the correct import.

Review: Positional args inside an object, wrong "USDC" mint, imports getDepositIxs instead of getWithdrawIxs.

64. Medium Unwind recipe uses an undefined variable
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: lend/advanced/unwind.md:74
From the report
Evidence

Evidence: const flashParams = { connection, signer, asset: solMint, amount: withdrawAmount }; (only WITHDRAW_AMOUNT is defined)

Suggested fix, not tested

use one name consistently, and mark the hard-coded position id and amount as placeholders.

Review: withdrawAmount is used but WITHDRAW_AMOUNT is defined (line 86 too).

65. Medium Combined-operations sample reads a field the SDK does not return
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: lend/borrow/combined.md:68
From the report
Evidence

Evidence: ... positionId } = await getOperateIx({ ... positionId: positionId!,

Why it matters

every other page destructures nftId. The second call receives undefined, and the non-null assertion hides the problem.

Suggested fix, not tested

use nftId and drop the assertion.

Review: positionId is destructured; other pages destructure nftId.

67. Medium Leverage recipe sizes the deposit from the best-case quote
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: lend/advanced/multiply.md:128 (also line 278)
From the report
Evidence
const swapOutputAmount = new BN(quoteResponse.outAmount);
const supplyAmount = initialCollateral.add(swapOutputAmount);
Why it matters

with 1% slippage allowed, the swap can deliver less than outAmount, and the atomic transaction then reverts.

Suggested fix, not tested

size the deposit from otherAmountThreshold.

Review: Uses outAmount; unwind.md uses otherAmountThreshold.

70. Medium Prediction guide prints micro-USD prices as cents
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: guides/how-to-build-a-prediction-market-app-on-solana.md:141
From the report
Evidence

Evidence: console.log( ${market.metadata.title}: YES ${market.pricing.buyYesPriceUsd}¢); (line 323: micro USD)

Why it matters

a 70-cent price is shown as 700000¢.

Suggested fix, not tested

divide by 10,000 for cents, or use the page's own display helper.

Review: Line 141 prints buyYesPriceUsd with "¢"; line 323 says micro USD.

75. Medium Lend specs: examples violate their own schemas
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: openapi-spec/lend/lend.yaml:429; also lines 234 and 620, api-reference/lend/earn/earnings.md:55, openapi-spec/lend/borrow.yaml:139
From the report
Evidence

Evidence: UserEarningsResponse: type: object (the example is an array), and - id: "So1111..." against an integer id

Why it matters

generated clients and validators reject the documented responses. Earn and Borrow also type and name the same objects differently.

Suggested fix, not tested

validate examples against schemas, and share one schema for each concept.

Review: The response schema is an object but the example is an array. id is integer but the example is a mint string.

77. Medium Lend rate fields are documented at three different scales
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: lend/earn/read-data.md:74
From the report
Evidence

Evidence: supplyRate and rewardsRate are scaled by the SDK's internal precision (e.g. 1e12).

Why it matters

the REST schema says 1e4, and the analytics page divides by 100. Integrators who mix sources are off by orders of magnitude.

Suggested fix, not tested

state one scale per surface, with conversions.

Review: "e.g. 1e12"; REST schema "1e4 decimals" with example "0.035"; analytics divides by 100.

78. Medium Vault registration creates a resource on GET and contradicts itself
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: openapi-spec/trigger/v2/trigger.yaml:637; also api-reference/trigger/vault-register.md:30, trigger/deposit.md:40
From the report
Evidence

Evidence: /vault/register: get: ... Subsequent calls return the existing vault. (and '409': Vault already exists)

Why it matters

a GET can be fired by prefetchers or replayed by proxies. The docs give two answers for a repeat call. The samples register a new vault on any failure, not just "not found".

Suggested fix, not tested

use POST with defined idempotency, and fall back only on 404.

Review: Spec: "Subsequent calls return the existing vault" with a 409. Narrative: deposit.md:45 and errors.md:21 say 409.

82. Medium Perps pool account fields have wrong types
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: perps/pool-account.md:52 (also line 34)
From the report
Evidence

Evidence: | increasePositionBps | Type: string ... / | decreasePositionBps | Type: publicKey ...

Why it matters

integrators who decode the account from this page read the wrong data.

Suggested fix, not tested

correct the types from the program interface definition.

Review: increasePositionBps is string, decreasePositionBps is publicKey, and further rows are shifted (taxBps is PoolApr).

86. Medium Build samples sign and submit after a failed simulation
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: swap/build/index.md:349; also lines 386 and 481, swap/build.md (identical copy), swap/advanced/transaction-versions.md:220 and :237
From the report
Evidence
if (simulationResult.value.err) {
    console.error("Simulation failed:", simulationResult.value.err);
  }
Why it matters

a transaction already known to fail is signed and paid for, including the tip. The submit response is read without a status check. The polling loop ends silently on timeout.

Suggested fix, not tested

stop on a failed simulation, check submitRes.ok, and report a timeout.

Review: console.error with no return, then sign and submit; submit response not checked.

89. Medium Rate-limit sample throttles every request when the header is absent
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: portal/rate-limits.md:62
From the report
Evidence

Evidence: const remaining = Number(response.headers.get("x-ratelimit-remaining")); followed by } else if (remaining <= 1) {

Why it matters

the header is documented as absent on some plans and statuses. Number(null) is 0, so every response causes a one-second sleep. The request is also never retried after a 429.

Suggested fix, not tested

act only when the header is present and finite, and retry after the wait.

Review: Number(null) is 0, so remaining <= 1 fires. Line 47 says the header is absent on some responses.

90. Medium Prediction position page gives conflicting parameter and status definitions
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: prediction/position-data.md:233 (also lines 41, 173 and 180)
From the report
Evidence

Evidence: | start | number | Start timestamp or index | and | status | pending, filled, or failed |

Why it matters

open-positions.md uses created/partiallyfilled/filled/failed. Clients that switch on the shorter set mishandle partial fills, and callers cannot tell which unit start and end use.

Suggested fix, not tested

use one unit per parameter and one status enum per resource.

Review: start/end mean "index (or timestamp)" at :173 and "timestamp or index" at :233. Status pending/filled/failed against created/partiallyfilled/filled/failed.

91. Medium Plugin customization examples are not valid JavaScript
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: tool-kits/plugin/customization.md:238 (lines 238-273)
From the report
Evidence
window.Jupiter.init({
  displayMode: "integrated";
  integratedTargetId: "jupiter-plugin";
Suggested fix, not tested

use commas between properties.

Review: Semicolons between object properties in three examples.

96. Medium Forecast swap sample uses 100% slippage tolerance
First rating: Medium · Reviewed rating: Medium · Review: confirmed · new in this audit
Location: prediction/forecast.md:148
From the report
Evidence

Evidence: slippageBps: "10000",

Why it matters

a copied order can be filled at any price, and nearly the whole input amount can be extracted.

Suggested fix, not tested

use a bounded tolerance or dynamic slippage, and explain the tradeoff near expiry.

Review: slippageBps: "10000" at :148, with the prose "Use a high slippageBps".

Low after review (47)

1. Low Pages carry an instruction addressed to automated readers
First rating: High · Reviewed rating: Low · Review: rated too high · also in the first audit (#F-9)
Location: guides/index.md:2, and the same header on 302 of the 314 files.
From the report
Evidence
> Fetch the complete documentation index at: https://developers.jup.ag/docs/llms.txt
> Use this file to discover all available pages before exploring further.
Why it matters

this is imperative text aimed at AI tools that ingest the pages, telling them to fetch an external resource. It is most likely publishing boilerplate. Still, content that steers automated readers is the same mechanism a prompt-injection attack uses: tools that follow it widen what they read and trust. It was not followed during this review.

Suggested fix, not tested

remove the instruction from page bodies, or move it into a clearly separated machine-readable metadata block that ingestion tools can strip.

Review: Banner is on 302 of 314 files. It is the vendor's own docs-platform header pointing to its own llms.txt, with no harm shown.

2. Low Prediction-market guide sends orders without checking they landed
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: guides/how-to-build-a-prediction-market-app-on-solana.md:207 (also line 263 for claims)
From the report
Evidence
const signature = await connection.sendRawTransaction(transaction.serialize(), {
    skipPreflight: true,
  });
Why it matters

preflight is skipped and the transaction is never confirmed. An order or payout claim that fails or is dropped looks exactly like a success to the integrator's app.

Suggested fix, not tested

confirm the signature against the lastValidBlockHeight returned in txMeta, check the result, and re-quote on expiry. Keep preflight on, or explain why skipping it is safe.

Review: Lines 207-209 and 263-265 confirmed. Minimal snippet, no wrong result shown.

4. Low Wallet scripts and adapter packages are loaded without a pinned version
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: guides/how-to-embed-a-swap-widget.md:35; also tool-kits/plugin/html-app-example.md:38, tool-kits/wallet-kit/jupiter-wallet-extension.md:30, jupiter-mobile-adapter.md:40
From the report
Evidence
<script src="https://plugin.jup.ag/plugin-v1.js" data-preload defer></script>
npm i @jup-ag/wallet-adapter
Why it matters

code that runs in a wallet-connected page changes underneath the integrator, and two separately versioned adapters can drift apart.

Suggested fix, not tested

publish versioned URLs with Subresource Integrity hashes. Pin package versions and document which adapter versions are compatible with each other.

Review: plugin-v1.js and an unversioned npm i are present.

6. Low Integrator fee payer co-signs a user-built transaction without inspecting it
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: ultra/add-payer.md:30
From the report
Evidence

Evidence: Integrator is required to proxy the request to their backend in order to sign the transaction (partially signed by user) before sending to /execute

Why it matters

the integrator's backend signs, with its payer key, a transaction that arrives from the client. Nothing in the guidance tells it to check what it is signing. A modified transaction could debit the payer for more than fees and rent.

Suggested fix, not tested

before co-signing, decode the transaction. Check that the payer key is only the fee payer and rent funder, and never the source or authority of a transfer or close. Also check that program ids and instruction shapes match the /order response.

Review: The omission is real, but the page already warns about payer drain (lines 70-77). No wrong result shown.

7. Low Gasless build path leaves payer-key signing unguarded
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: swap/advanced/gasless.md:145
From the report
Evidence

Evidence: You are responsible for building the transaction, collecting both signatures (taker + payer), and sending via your own RPC.

Why it matters

this has the same exposure as finding 6. The payer key co-signs instructions that the user can change.

Suggested fix, not tested

add a required verification step. Reject any instruction that debits the payer other than network fee, priority fee or tip, and ATA rent.

Review: Same as #6. A recoup warning exists at lines 147-153.

11. Low Deprecated token mode has no removal date or switch-off condition
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: trigger/authentication.md:15 (also api-reference/trigger/verify.md:37, openapi-spec/trigger/v2/trigger.yaml:383)
From the report
Evidence

Evidence: **access_only is deprecated (2026-07-21) and will be removed.** ... Nothing breaks today

Suggested fix, not tested

publish the removal date and the measured condition that gates the switch (for example, no remaining callers of the old mode). Keep the deprecation headers until then.

Review: Only "deprecated (2026-07-21) and will be removed".

12. Low Old gateway retirement has no dated phases
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: portal/migration.md:16
From the report
Evidence

Evidence: Old API gateway (including lite-api) progressively deprecated | When new gateway is stable.

Suggested fix, not tested

publish dated warn and enforce phases, and confirm that no live consumers remain before switching off.

Review: "When new gateway is stable".

14. Low Logout endpoint's authentication requirement is stated two ways
First rating: Low · Reviewed rating: Low · Review: location checked, kept as rated · new in this audit
Location: openapi-spec/trigger/v2/trigger.yaml:531
From the report
Evidence

Evidence: No authentication is required ... security: - ApiKeyAuth: []

Suggested fix, not tested

make the prose and the security block agree.

Review: Prose says "No authentication is required"; the block says ApiKeyAuth.

16. Low Exact quantity fields are optional while the lossy legacy field is required
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: api-reference/prediction/create-order.md:274; also claim-position.md:138, get-position.md:242, openapi-spec/prediction/prediction.yaml:929
From the report
Evidence

Evidence: required: ... - contracts - newContracts (contractsMicro and contractsDecimal are not required)

Why it matters

a client that relies only on required fields reads truncated whole-contract quantities.

Suggested fix, not tested

require the exact fields wherever the legacy field is required, and state how the two relate.

Review: contracts and newContracts are required; the exact fields are not.

17. Low Trigger order-type rules are prose only, not in the schema
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: api-reference/trigger/create-order.md:104; also openapi-spec/trigger/v2/trigger.yaml:704, :806
From the report
Evidence

Evidence: required: - orderType ... - triggerMint - expiresAt (Single, OCO and OTOCO rules appear only in descriptions)

Suggested fix, not tested

model the order types with oneOf or a discriminator, each variant with its own required set and the promised numeric bounds.

Review: orderSubType and orderType are plain enums; the rules are in descriptions.

20. Low Plugin is initialised in an effect without teardown
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: tool-kits/plugin/react-app-example.md:145; also nextjs-app-example.md:191, guides/how-to-embed-a-swap-widget.md:173
From the report
Evidence

Evidence: useEffect(() => { window.Jupiter.init({

Suggested fix, not tested

return a cleanup that destroys the instance, or guard against a second initialisation.

Review: A close() type exists, so cleanup is possible.

21. Low Wallet state is synced to the widget only once
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: guides/how-to-embed-a-swap-widget.md:313
From the report
Evidence

Evidence: window.Jupiter.syncProps({ passthroughWalletContextState: walletContextState,

Suggested fix, not tested

call it from an effect keyed on the wallet state, so connect, disconnect and account switches reach the widget.

Review: A one-shot syncProps under a comment saying "when it changes".

22. Low Polling guidance has no interval, backoff or stop condition
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: trigger/best-practices.md:74; also prediction/trading-lifecycle.md:77, tokens/index.md:63
From the report
Evidence

Evidence: Poll the history endpoint to track order state; the states differ by family.

Suggested fix, not tested

give an interval with backoff, poll only orders that are not yet terminal, skip unchanged results, and stop on terminal states.

25. Low Invite and order visibility rules differ between readers
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: openapi-spec/send/send.yaml:259; also trigger.yaml:969
From the report
Evidence

Evidence: Pubkey can be sender or recipient versus Pubkey of Sender, and '403': Order belongs to a different wallet versus '404': ... not owned on the DCA readers

Suggested fix, not tested

define one visibility rule per collection and return the same status for "not yours" everywhere.

Review: The send.yaml pair is weak.

26. Low Recurring order amounts are 64-bit values sent as JSON numbers
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: api-reference/recurring/create-order.md:127; also recurring/create-order.md:59
From the report
Evidence
inAmount:
  type: integer
  format: int64
Why it matters

for 9-decimal tokens, any order above about 9 million tokens exceeds 2^53 base units. JavaScript clients then silently round the order size. The schema also accepts a zero amount and a zero order count.

Suggested fix, not tested

accept base-unit amounts as decimal strings, as the other APIs do, and raise the minimums.

Review: Real: format: int64, minimum: 0. The page set is "unmaintained" per trigger/index.md:40. No wrong result shown.

28. Low Payment amounts used for accounting are echoed by the client
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: api-reference/tokens/verify-execute.md:121; also openapi-spec/tokens/v2/verification.yaml:259, tokens/verification.md:189
From the report
Evidence

Evidence: jupOutputAmount: ... echoed back so revenue tracks the actual JUP collected on swap paths.

Why it matters

the server already issued the quote. Taking the paid amounts back from the caller lets a client influence the payment and revenue records.

Suggested fix, not tested

look up amounts by requestId from the stored quote, or from the confirmed on-chain transfer, and drop them from the request.

Review: The echo is real. Server handling is invisible, so the claim is speculation.

31. Low Redundant flags and fields can contradict each other
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: api-reference/tokens/verify-execute.md:221; also api-reference/studio/dbc-pool-create-tx.md:134
From the report
Evidence

Evidence: useCirculatingSupply ... coingeckoCoinId / useCoingeckoCoinId ... circulatingSupplyUrl / useCirculatingSupplyUrl

Suggested fix, not tested

drop the use* flags, or define what happens for each conflicting combination. Derive quote decimals from the quote mint.

Review: use* flags and tokenQuoteDecimal are redundant with the data.

33. Low Legacy compatibility fields have no retirement list
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: api-reference/prediction/create-order.md:83; also api-reference/trigger/verify.md:110, openapi-spec/prediction/prediction.yaml:368, api-reference/ultra/order.md:10
From the report
Evidence

Evidence: contracts: "Legacy whole-contract sell quantity ... prefer contractsMicro or contractsDecimal."

Suggested fix, not tested

publish one list of compatibility fields and modes (the old token default, owner/ownerPubkey, legacy contracts, the duplicate error field, swapType, priceImpactPct, flows that still depend on Ultra), each with its removal condition.

34. Low Price-impact fields change meaning and scale between APIs
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: api-reference/swap/order.md:236; also ultra/response.md:26
From the report
Evidence

Evidence: "priceImpactPct": "-0.0001311599520149334", ... "priceImpact": -0.013115995201493341,

Suggested fix, not tested

document the unit of each field, or rename them, so migrating clients do not misread impact by a factor of 100.

Review: ultra/response.md shows -0.00013 vs -0.0131, which is x100. api-reference/ultra/order.md:411,416 shows 0.0001 for both.

40. Low Swap helpers are copy-pasted into every recipe
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: lend/advanced/multiply.md:106 (also unwind, vault-swap, repay-with-collateral; loadKeypair appears on more than ten pages)
From the report
Evidence

Evidence: function jupIxToTransactionInstruction(ix: {

Suggested fix, not tested

export these helpers from the SDK or one shared snippet.

Review: jupIxToTransactionInstruction appears in 5 files; loadKeypair in 14+.

42. Low Grace-period end date is stated two ways
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: portal/migration.md:15
From the report
Evidence

Evidence: Grace period ends ... | 30th June 2026 | versus line 68 free for **3 months** after the new platform launches

Suggested fix, not tested

publish one end date. Three months from 6 April is 6 July, not 30 June. Also state what happens to plan grants that have no matching paid tier.

Review: 30 June against "3 months" from 6 April.

45. Low Omitted auth mode still issues the deprecated 24-hour token, and logout overstates revocation
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: openapi-spec/trigger/v2/trigger.yaml:409; also api-reference/trigger/verify.md:66, logout.md:33, logout-all.md:36
From the report
Evidence
default: access_only
description: Token model. Defaults to the deprecated access_only when omitted.
Why it matters

every existing client silently keeps the weaker, non-revocable token. The logout pages promise that issued tokens expire within 15 minutes, which is false for this default.

Suggested fix, not tested

make authMode required, or default it to the refresh model. Correct the logout text.

Review: The default is stated plainly. Logout takes a refresh token, so the "15 minutes" sentence concerns access_refresh.

46. Low Lend advanced guides still call the retired lite-api host
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: lend/advanced/unwind.md:84; also vault-swap.md:119, repay-with-collateral-max-withdraw.md:100, multiply.md:88 and :212
From the report
Evidence

Evidence: const LITE_API = "https://lite-api.jup.ag/swap/v1";

Suggested fix, not tested

move these guides to the current swap endpoint with an API key.

Review: The host is "phased out... until fully retired" (migration.md:93), not retired. All 5 cites are correct.

48. Low CLI install pipes a remote script into the shell
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: ai/cli.md:44
From the report
Evidence

Evidence: curl -fsSL https://openclaw.ai/install.sh | bash

Why it matters

an unverified third-party script runs on a machine that will then hold a trading key.

Suggested fix, not tested

pin a version, publish a hash or signature, and tell users to download, verify and then run.

Review: Third-party install script, in a page marked pre-v1 alpha.

49. Low Dependencies installed without version or integrity information
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: ai/skills.md:37; also lend/oracles.md:92, send/invite-code.md:258, jupusd/index.md:92
From the report
Evidence

Evidence: const IDL_URL = "https://raw.githubusercontent.com/jup-ag/jupiter-lend/refs/heads/main/target/idl/oracle.json";

Suggested fix, not tested

pin packages, IDLs and skills to versions or commits, and state the versions the samples were tested with.

51. Low Snippets and spec fragments are copy-pasted across pages
First rating: Low · Reviewed rating: Low · Review: location checked, kept as rated · also in the first audit (#F-7)
Location: send/craft-clawback.md:93; also api-reference/send/pending-invites.md:148, the wallet-loading snippet on more than 20 pages, and the Plugin type declarations in three pages
From the report
Evidence

Evidence: const blockhashInfo = await connection.getLatestBlockhashAndContext({ commitment: "confirmed" });

Suggested fix, not tested

publish shared snippets once and generate reference pages from the single spec file.

Review: 20 inline schema definitions across 10 files; the same Plugin type block in three pages.

53. Low Fee and rate-limit facts are stated differently on the same pages
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: ultra/get-started.md:39; also ultra/fees.md:13
From the report
Evidence

Evidence: ...and rate limits scale dynamically with swap volume. (line 54: dynamic limits were replaced by fixed ones)

Suggested fix, not tested

keep one source for fees and limits, and correct the summaries.

Review: "scale dynamically" at :39 against "replaced by fixed" at :54.

54. Low Content API page documents a surface pending an unreleased replacement
First rating: Low · Reviewed rating: Low · Review: confirmed · new in this audit
Location: tokens/content.md:10
From the report
Evidence

Evidence: The Content API is being deprecated in favor of a more comprehensive replacement, coming as part of an upcoming Tokens API update.

Suggested fix, not tested

give a dated end-of-life and a concrete migration target. Document or remove the /content/summaries endpoint, which has no reference page.

Review: /content/summaries is on one narrative page only.

59. Low Market-maker webhook authentication is optional
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: swap/routing/rfq/v1/webhook-api.md:22
From the report
Evidence

Evidence: If your endpoints require an API key, provide it during registration.

Why it matters

the /swap webhook leads to the maker co-signing fills with a funded key.

Suggested fix, not tested

require authentication (a secret or signed requests, plus an IP allow-list), and tell makers to re-validate each transaction before signing.

Review: Optional key plus 401 handling is a vendor design choice.

66. Low Placeholder position id 0 means "create new" in the borrow samples
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: lend/borrow/borrow.md:44; also withdraw.md:42, repay.md:44
From the report
Evidence

Evidence: const POSITION_ID = 0; // nftId from Create Position

Why it matters

the deposit page documents 0 as "create a new position". Running these samples unedited mints new empty positions and pays rent, instead of acting on the intended one.

Suggested fix, not tested

use an obviously invalid placeholder, or require the value.

Review: A borrow, withdraw or repay with no collateral would revert, so "pays rent for empty positions" is doubtful.

68. Low Repay guide tells readers to leave dust, contradicting the API guide
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: lend/borrow/repay.md:120
From the report
Evidence

Evidence: Full repay uses your total debt amount (you may need to leave a tiny dust amount depending on the protocol).

Why it matters

the API guide says that repaying the exact amount fails with VaultUserDebtTooLow, and that the max-repay sentinel must be used to clear the debt.

Suggested fix, not tested

document the sentinel-based full repay and withdraw on the SDK pages.

Review: The same page gives MAX_REPAY_AMOUNT at :146.

69. Low Withdraw guide points at the deposit endpoint
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: recurring/withdraw-price-order.md:31
From the report
Evidence

Evidence: Choose the order account to deposit by making a post request to the /priceDeposit endpoint

Suggested fix, not tested

point the step at /priceWithdraw.

Review: Prose typo only; the code uses /priceWithdraw (:53). The same typo is in the earlier copy.

72. Low Price sample values unpriced tokens at zero
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: guides/how-to-get-token-price.md:213
From the report
Evidence
const price = prices[mint]?.usdPrice ?? 0;
totalValue += amount * price;
Why it matters

tokens without a price, or a failed request, silently undercount the portfolio. The 50-id limit is also ignored.

Suggested fix, not tested

check response.ok, split ids into chunks of 50, and report unpriced holdings.

Review: Real (?? 0, no chunking), but the Price page documents omission and how to detect it.

73. Low Price API missing-price behaviour is described two ways
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: price/index.md:35 (copy in price.md)
From the report
Evidence

Evidence: price is not available or returns null versus line 94 Tokens without a reliable price are **omitted entirely**

Suggested fix, not tested

remove the "returns null" statement and tell clients to test for key presence.

Review: :35 "or returns null" against :94 "omitted entirely". The later paragraph resolves it.

74. Low Prediction execute path example does not match the documented URL
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: api-reference/prediction/create-order.md:328; also close-position.md:297, close-all-positions.md:360, openapi-spec/prediction/prediction.yaml:716
From the report
Evidence

Evidence: Resolves to https://api.jup.ag/prediction/v1/execute. example: /api/v1/execute

Suggested fix, not tested

make the example resolve to the stated URL, or return an absolute URL.

Review: Example /api/v1/execute against "Resolves to .../prediction/v1/execute". Illustrative example field.

79. Low Terms say no hosted wallets, but the Trigger API creates them
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: legal/terms-of-use.md:92
From the report
Evidence

Evidence: We will not create any hosted wallet for you or otherwise custody digital assets on your behalf

Why it matters

the Trigger API creates managed vault wallets that hold deposits.

Suggested fix, not tested

align the terms with the products that hold funds, or document the custody boundary.

Review: Terms scope is "Interface and Protocol"; the Trigger vault is "custodial by Privy" (trigger/index.md:29). Real tension, but a legal reading.

80. Low Suspicious-token flag is signalled by presence, not value
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: openapi-spec/tokens/v2/tokens.yaml:434
From the report
Evidence

Evidence: isSus: type: boolean nullable: true ... check for the field's presence, not its value.

Why it matters

a consumer that checks the value treats a flagged token with a null value as safe.

Suggested fix, not tested

always return a real boolean.

Review: The spec and tokens/index.md:36 both say to check presence. Documented quirk.

81. Low Banned verification level has no field in the API
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: tokens/index.md:34 (copy in tokens.md)
From the report
Evidence

Evidence: | **Banned** | Flagged as malicious, scam, or misleading. | Do not display or warn users. |

Why it matters

the schema has only a nullable isVerified and a presence-only isSus (searched; no banned field). Integrators cannot follow the guidance to hide scam tokens.

Suggested fix, not tested

expose an explicit verification-level enum.

Review: The page names isVerified and audit.isSus as the signals.

83. Low Studio fee is both required and defaulted
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: openapi-spec/studio/studio.yaml:432 (also api-reference/studio/dbc-pool-create-tx.md:201)
From the report
Evidence

Evidence: If not provided, the default fee will be 100 basis points (1%) with fee and feeBps required

Suggested fix, not tested

make the field optional with the stated default, or drop the default claim.

Review: fee is required while the text says "If not provided".

84. Low Prediction profile fields change type between endpoints
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: openapi-spec/prediction/prediction.yaml:2367
From the report
Evidence

Evidence: predictionsCount: type: string versus line 2587 predictionsCount: type: number

Suggested fix, not tested

use one type per field name, and add kalshi to the provider enum used by Market.

Review: predictionsCount is string on profile and number on leaderboards, each matching its example. The real gap is kalshi missing from the Market.provider enum.

85. Low Risk-warning enum contains template strings
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: api-reference/ultra/shield.md:77; also api-reference/ultra/order.md:365
From the report
Evidence

Evidence: - '{}%_TRANSFER_FEES' and - Top up ${solAmount} SOL for gas

Why it matters

strict clients reject the real values, so a transfer-fee warning can be lost.

Suggested fix, not tested

use literal codes, with the numeric part in a separate field.

Review: Pattern values in an Ultra reference that is "no longer actively maintained".

87. Low Submit sample does not check the build response and drops missing lookup tables
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: transaction/submit.md:152 (also line 387, and lines 167-170)
From the report
Evidence

Evidence: const build: BuildResponse = await buildRes.json();

Why it matters

a 4xx or 5xx response turns into a TypeError, and lookup tables that fail to load are silently skipped.

Suggested fix, not tested

check buildRes.ok, use the lookup tables returned by /build, and fail if one is missing.

Review: Real (no buildRes.ok, ALT silently skipped), but robustness only.

88. Low Submit size limit contradicts the larger transaction version the docs promote
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: transaction/submit.md:45
From the report
Evidence

Evidence: | **Transaction size** | Must not exceed the Solana transaction size limit (1232 bytes) | (transaction-versions.md:21: v1 allows 4096 bytes)

Suggested fix, not tested

state whether /submit accepts v1 transactions, and warn on the build pages if it does not.

Review: 1232 against v1's 4096 (transaction-versions.md:21). The page does not say whether /submit takes v1.

92. Low Token-launch sample signs before checking uploads succeeded
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: studio/create-token.md:202 (also line 216, submit at line 275)
From the report
Evidence

Evidence: const imageResponse = await fetch(createTransaction.imagePresignedUrl, { method: 'PUT', ... (no status check)

Why it matters

a failed upload still leads to an irreversible on-chain token that points at missing metadata.

Suggested fix, not tested

check both upload responses, and the create response, before signing.

Review: The prose tells readers to upload first; the samples lack .ok checks.

93. Low Confirmation uses an older finalized blockhash, so expiry can be misreported
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: lend/earn/api.md:84; also line 318, studio/claim-fee.md:84, recurring/execute-order.md:101
From the report
Evidence

Evidence: const blockhashInfo = await connection.getLatestBlockhashAndContext({ commitment: "finalized" });

Why it matters

a finalized blockhash is older than the transaction's own, so the sample can report "expired" while the transaction may still land. That prompts a duplicate send.

Suggested fix, not tested

confirm against the signed message's own blockhash and lastValidBlockHeight.

Review: Valid pattern bug (a false "expired" report). All four cites hold, but the effect is a misleading error only.

94. Low Two-factor authentication does not apply to OAuth sign-in
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: portal/security.md:20
From the report
Evidence

Evidence: 2FA applies to email and password sign-in only. If you sign in with OAuth, 2FA is not applied

Why it matters

these accounts control API keys and billing. Anyone with OAuth access can bypass the second factor.

Suggested fix, not tested

enforce 2FA on every sign-in method, or at least on key and billing changes.

Review: Stated openly on the page.

95. Low Chat-driven trading setup has no limits or confirmation
First rating: Medium · Reviewed rating: Low · Review: rated too high · new in this audit
Location: ai/cli.md:59
From the report
Evidence

Evidence: OpenClaw executes the CLI command on your behalf and returns the result in chat.

Why it matters

a chat message, or an injected message, can move funds from a hot key without limits.

Suggested fix, not tested

document a dedicated low-balance key, per-trade and daily limits, chat allow-lists and human confirmation.

Review: Page carries an alpha warning (:12). The omission is guidance only.

Info after review (20)

5. Info Widget guide omits the HTTPS requirement for browser-wallet connection
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: guides/how-to-embed-a-swap-widget.md:319
From the report
Evidence

Evidence: Users connect their browser wallet (Phantom, Backpack, etc.) directly through the widget.

Why it matters

browser wallets refuse to connect from plain-HTTP origins other than localhost, and the failure is silent. I searched the guide and it has no note about this.

Suggested fix, not tested

state that production pages must be served over HTTPS, and tell integrators to detect the origin and show an error.

Review: Line 319 is as quoted. The claim that wallets refuse HTTP origins is outside the pages.

8. Info Lend samples sign API-returned instructions without checking them
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: lend/borrow/api.md:209 (also send/invite-code.md, recurring/execute-order.md, tokens/verification.md)
From the report
Evidence

Evidence: new TransactionInstruction({ programId: new PublicKey(instruction.programId), ...

Why it matters

samples sign whatever program ids and accounts come back from the API, without checking them.

Suggested fix, not tested

allow-list the expected program ids. Check that transfer sources and destinations and the fee payer are the signer's own accounts before signing.

Review: Only borrow/api.md builds TransactionInstruction. The named sibling pages do not show it.

15. Info Responsive screenshots have no sizes attribute
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: guides/how-to-embed-a-swap-widget.md:89; also ultra/plugin-integration.md:46, tool-kits/plugin.md:42, tool-kits/plugin/index.md:42
From the report
Evidence

Evidence: srcset="...?w=280... 280w, ... 2500w" (no sizes)

Why it matters

without sizes the browser assumes the image fills the viewport, so it downloads a much larger file than the narrow content frame needs.

Suggested fix, not tested

add a sizes value that describes the drawn width inside the doc frame.

Review: Mintlify-generated media markup, not copyable code. All four cites correct (89, 46, 42, 42).

19. Info Other flag and value pairs have no stated invariant
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: openapi-spec/prediction/prediction.yaml:134; also tokens.yaml:350, swap/v2/swap.yaml:375, studio.yaml:398, perps/position-request-account.md:64, perps/position-account.md:55
From the report
Evidence

Evidence: status: enum [open, closed, cancelled] ... tradable: boolean ... lifecycleStatus: enum [open, resolving, settled]

Suggested fix, not tested

state each combined rule explicitly (for example, tradable holds exactly when status and lifecycleStatus are both open), and validate it.

Review: lifecycleStatus already says "Only open is tradable".

23. Info Full-protocol position scan suggested on a public RPC
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: lend/liquidity/analytics.md:128
From the report
Evidence

Evidence: const allPositions = await client.liquidity.getAllUserPositions();

Suggested fix, not tested

warn that this needs a dedicated RPC or an indexer, and add paging.

Review: The page says it is for indexers and liquidator bots.

24. Info Unused hasher in the invite-code helper
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: send/invite-code.md:88 (copy at line 308)
From the report
Evidence

Evidence: const sha = createHash("sha256");

Suggested fix, not tested

delete the unused variable.

Review: sha is unused, but this is hygiene only.

27. Info Other amounts are JSON numbers or parsed with parseInt
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: api-reference/prediction/get-position.md:173; also openapi-spec/prediction/prediction.yaml:862, api-reference/studio/dbc-fee-create-tx.md:111, api-reference/lend/earn/earnings.md:75, studio/claim-fee.md:169, prediction/position-data.md:136
From the report
Evidence

Evidence: realizedPnlUsd: type: number description: Realized PnL in micro USD (i64 as number)

Suggested fix, not tested

use strings for every base-unit or micro-unit value, and use BigInt or a decimal library in the samples.

Review: realizedPnlUsd is number ("i64 as number"), but micro-USD does not reach 2^53 in practice.

29. Info Prediction execute context is optional
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: api-reference/prediction/execute.md:78; also openapi-spec/prediction/prediction.yaml:739
From the report
Evidence

Evidence: Optional. The execution.context object ... Validated against the signed transaction when present.

Suggested fix, not tested

keep the context server-side, keyed by request id, and always validate against it.

Review: Design preference.

30. Info Caller-supplied content is fetched or unwrapped with no stated budget
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: api-reference/tokens/verify-execute.md:237; also swap/routing/rfq/v1/settlement.md:24
From the report
Evidence

Evidence: circulatingSupplyUrl: type: string description: URL to a live circulating supply endpoint

Suggested fix, not tested

document and enforce allowed destinations, a size cap, an iteration cap and a time budget.

Review: Server behaviour is unverifiable. settlement.md:24-25 tells makers to validate.

32. Info One field accepts two identifier forms, and ids depend on an implicit market
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: api-reference/prediction/create-order.md:69; also lend/borrow/api.md:59
From the report
Evidence

Evidence: marketId: ... Hashed or canonical market ID for buys and The same vaultId refers to a different vault in main than in ethena

Suggested fix, not tested

accept one identifier form per field, and return the market alongside vault and position ids.

Review: Market scoping is stated explicitly at borrow/api.md:57-59.

35. Info Server-owned limits and tip accounts are meant to be hard-coded
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: trigger/best-practices.md:52; also api-reference/trigger/create-dca.md:81, transaction/submit.md:480
From the report
Evidence

Evidence: Minimum order size is 10 USD ... Enforce this client-side to avoid unnecessary API calls.

Suggested fix, not tested

expose limits and the tip-account list through a config endpoint or in responses.

Review: "Enforce client-side" is optimisation advice.

36. Info Token refresh is not single-flight
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: trigger/authentication.md:229
From the report
Evidence

Evidence: if (res.status === 401) { await refreshTokens();

Suggested fix, not tested

share one in-flight refresh promise across parallel requests, so concurrent requests cannot present the same rotating refresh token twice.

Review: A retry grace window for repeated /refresh is documented at authentication.md:218.

38. Info Referral fee is dropped silently when the fee account is missing
First rating: Medium · Reviewed rating: Info · Review: rated too high · new in this audit
Location: ultra/add-fees-to-ultra.md:57 (also lines 69 and 342, swap/order-and-execute.md)
From the report
Evidence

Evidence: If the referralTokenAccount for the feeMint is not initialized, the order will still return and can be executed without your fees.

Why it matters

an integrator loses fee revenue with no signal in the response.

Suggested fix, not tested

return an explicit "fee not applied" field with the reason, and document a check before signing.

Review: Stated three times, and order-and-execute.md:611 gives a check.

39. Info RFQ quote metadata layout changed incompatibly
First rating: Medium · Reviewed rating: Info · Review: rated too high · new in this audit
Location: swap/routing/rfq/v1/quoting.md:57
From the report
Evidence

Evidence: Reading only the last 3 bytes, or assuming a 3-byte region, gives the wrong fee and always reads exact-in.

Why it matters

market makers built against the old layout silently read the wrong fee and swap mode.

Suggested fix, not tested

extend binary layouts additively, with a version or length byte.

Review: The page documents the layout and warns about the 3-byte reading. No change history is visible.

41. Info One spec file holds many unrelated domains
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: openapi-spec/prediction/prediction.yaml:1 (2,688 lines; trigger.yaml has 1,551)
From the report
Evidence

Evidence: tags: - Events - Markets - Orders - Positions - History - Trading - Orderbook - Milestones - Vault

Suggested fix, not tested

split into per-domain files composed with $ref, and declare every tag that is used.

Review: 2,688 lines, but all nine tags belong to one Prediction API.

47. Info lite-api retirement has no traffic check
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: portal/migration.md:97
From the report
Evidence

Evidence: 1. Update your base URL from lite-api.jup.ag to api.jup.ag

Suggested fix, not tested

add a step that confirms zero remaining traffic to the old host, using request logs.

50. Info About twenty pages exist twice
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: lend.md:5 (identical to lend/index.md); also swap/build.md and swap/build/index.md, and the swap, trigger, ultra, prediction, tool-kits, studio, price, lock, guides, legal, perps, recurring, send, tokens and jupusd overview pairs
From the report
Evidence

Evidence: # Jupiter Lend Overview (byte-identical copies)

Suggested fix, not tested

keep one canonical page and redirect the other.

Review: Duplicate pages are real but are fetch-URL aliases. I count about 30 pairs.

52. Info Embedded specs reference spec files that are not in the submission
First rating: Low · Reviewed rating: Info · Review: rated too high · new in this audit
Location: api-reference/recurring/create-order.md:24
From the report
Evidence

Evidence: yaml openapi-spec/recurring/recurring.yaml post /createOrder

Why it matters

there are no recurring, ultra or content spec files under openapi-spec/ (searched). The embedded copies cannot be checked against a source.

Suggested fix, not tested

add the spec files or remove the references.

Review: openapi-spec/recurring/recurring.yaml is not in src (line 24 is correct). That is a submission artifact: the same directive is in the earlier copy.

71. Info Prediction guide puts the API key in front-end request code
First rating: Medium · Reviewed rating: Info · Review: rated too high · new in this audit
Location: guides/how-to-build-a-prediction-market-app-on-solana.md:132 (also line 186; the use case at line 51 is building a front-end)
From the report
Evidence

Evidence: headers: { 'x-api-key': 'YOUR_API_KEY' }

Why it matters

there is no guidance to keep the key server-side, so keys end up in client bundles and quotas can be stolen.

Suggested fix, not tested

show the key loaded on a backend proxy, and say whether keys may ship to clients.

Review: portal/firewall.md:9 says client-side keys are not secret and gives firewall controls.

76. Info Borrow API lets callers choose the RPC URL the server calls
First rating: Medium · Reviewed rating: Info · Review: could not be settled · new in this audit
Location: openapi-spec/lend/borrow.yaml:41 (also api-reference/lend/borrow/vaults.md:72)
From the report
Evidence
- name: rpcUrl
  in: query
  description: Optional custom Solana RPC URL used to resolve on-chain vault state.
Why it matters

any key holder can make the server contact internal addresses, or serve it attacker-chosen vault state.

Suggested fix, not tested

remove the parameter, or allow-list hosts, block private ranges and cap size and time.

Review: The parameter exists. The SSRF risk falls on the vendor's server and cannot be shown from the docs.

Excluded on review (1)

Findings the review showed to be wrong or a repeat of another finding. They are not counted above.

Want this for your code?

Upload a ZIP or link a public GitHub repo, pick the areas and the depth, and get findings by severity with fixes.