Every indexer on The Graph runs the same four pieces of software: graph-node to index, indexer-service and tap-agent from indexer-rs to sell queries and collect fees, the indexer agent to manage allocations, and on the other side of the wire, the gateway that routes and pays for those queries. On 27 November we read all four, looking for bugs that cost indexers money, give consumers wrong answers, or let someone outside the operator's control cause either. We filed 44 issues. Nobody commissioned the work and nobody paid for it; it was done pro bono, as members of the community that depends on this software. This is what the issues say, and how much weight each deserves.
What we read, and the rule we set first
We read the default branch of each repository as it stood that morning:
| Repository | Commit | Size read | Issues filed |
|---|---|---|---|
| graphprotocol/graph-node | 693bfb0c2 |
~225k lines of Rust | 18 |
| graphprotocol/gateway-x | aee88de |
~9k lines of Rust | 7 |
| graphprotocol/indexer-rs | 6a8889f |
~33k lines of Rust | 10 |
| graphprotocol/indexer | 1d80b44 |
~42k lines of TypeScript | 9 |
The reading was split by subsystem, six areas for graph-node and five across the other three, with AI review agents doing the first sweep in each. The rule we set before any of them started was that nothing would be filed that had not been confirmed against the source by a second reading, with a concrete trigger and a concrete wrong outcome, and searched for in the existing issue tracker. Style, "this could be cleaner" and "this might be a problem" were out. A number of candidates died at that stage. A few survived but had been reported before and closed as stale without a fix; those were filed again with a link to their predecessors.
Of the 44, 15 were reproduced by running something: a unit test, a query against Postgres 15, a standalone build of the affected module. The other 29 were confirmed by reading the code path end to end, and each of those issues says so in its own text.
Six findings that someone else can trigger
Most bugs in operator software need the operator's own infrastructure to misbehave. These six do not, which is why they come first.
A subgraph can take down every subgraph on its node (graph-node#6819). ethereum.decode charges gas on the size of its input, and the ABI decoder graph-node pins has no limit on the size of its output. ABI offsets can point several elements at the same child, so a nested array decodes to far more than it encodes. About 96 KB of input decoded to roughly a billion values, 24 GB of memory and 37 seconds inside one host call, for gas that rounds to nothing. The process is OOM-killed, and the block replays on restart. The fix is a version bump: alloy 1.7 adds a decoder memory limit.
The SQL query endpoint does not stay inside its deployment (graph-node#6820). With GRAPH_ENABLE_SQL_QUERIES on, which it is not by default, Postgres's TABLE schema.name syntax and LATERAL function calls both get past the validator. We ran the validator's output against Postgres 15 and read another deployment's tables, the deployment-to-schema map, and called functions that terminate backends and change settings on pooled connections.
One indexer can set the chain head for everyone on a chain (gateway-x#1235). The gateway learns chain heads from a response header that the attestation does not cover, and a block number reported by a single indexer counts as consensus. Report one block far in the future and it becomes the head until the gateway restarts; we ran the gateway's own chain module and watched it survive a thousand honest blocks from three indexers. Every honest indexer then looks hours behind, and the one that sent it looks perfectly synced.
An indexer can be made to sign conflicting attestations (indexer-rs#1137). indexer-service takes the allocation from the receipt and checks that it belongs to the indexer, but never that it is an allocation on the deployment being queried. A payer can therefore have a query for one deployment attested in the name of another. Two such answers to the same request are what a conflicting-attestation dispute is made of, and the cost of producing them is two receipts. This one deserves the arbitrator's view rather than ours on how a dispute would go, but the missing check is not in doubt.
One query can crash indexer-service, and another can price any query at 1 wei (indexer-rs#1138). Any error from cost-model evaluation falls back to the minimum value of 1 wei, and an unknown directive on a field is enough to cause one while graph-node runs the query regardless. Separately, the cost model walks fragments without a cycle check, so a fragment that spreads itself overflows the stack and aborts the process. Both were reproduced against the cost-model library at the revision indexer-rs pins.
The indexer management API answers web pages (indexer#1276). It allows CORS from any origin, has no authentication and listens on every interface. Any page the operator opens on a machine that can reach port 18000 can close allocations with whatever POI it likes. The documentation says not to expose that port, and nobody should, but a browser on the same machine is not what most people mean by exposure.
We filed all six publicly, with the reproduction payloads left out. graph-node has no security policy and private vulnerability reporting is switched off on the repository, so there was no obvious private door to knock on. Whether that was the right call is a fair argument, and we would rather have it in the open than not.
The commonest bug was an error that reports success
If one pattern ran through all four codebases, it was a failure path that ends by telling the caller everything went well. The individual cases are small. Together they are most of the reason problems on the network surface as "it just stopped" rather than as an error someone can act on.
- indexer-service logs a failed receipt insert and then tells every waiting request it succeeded, so the query is served and attested and the receipt is gone (indexer-rs#1130).
- graph-node's
rewindbuilds a "must go backwards" error and never returns it, sographman rewindwill happily move a deployment's head forward and skip the blocks in between (graph-node#6803). This is the cause of a 2024 report that was closed as not planned. - The gateway parses API-key allowlists with
parse().ok(), so a list whose entries do not parse becomes empty, and an empty list means every subgraph is allowed (gateway-x#1239). - The gateway also treats a query it cannot parse for block constraints as having none, which switches off its freshness filtering for that query (gateway-x#1236).
- The indexer agent reports a transaction that reverted on its first attempt as IE058, "may have been successful" (indexer#1275).
Fees that are owed and quietly not collected
The second group is money. None of it is lost on-chain; it simply stops being collected, and nothing says so.
A RAV redemption that fails once is not retried (indexer#1273). The agent's redemption pipeline only acts when its input changes, so a cycle that fails for a reason that clears up, such as low escrow that is later topped up, builds the same list next time and does nothing. We reproduced it with the real library code: 46 timer passes, one redemption attempt. This is very likely the cause of indexer#1254, where 323 RAVs worth about 42k GRT sat unredeemed for six hours until a restart.
A payer can be denied for good after one transient fault (indexer-rs#1131, #1132). If tap-agent fails to start a sender's account, because the aggregator was briefly down, say, it denies the sender and never tries again. If the account does start, one failed database query panics the task that keeps its escrow balance current, and some days later the frozen balance trips the deny condition with no way back. Either way, indexer-service then refuses that payer's queries until somebody restarts the agent.
A stuck transaction is never repriced (indexer#1274). The agent bumps gas on a timeout by matching the error text timeout exceeded, which is what ethers v5 said. The agent uses ethers v6, which says something else, so the same transaction is resent unchanged in a tight loop.
Wrong answers, given quietly
The third group gives the consumer of a subgraph the wrong data without an error.
where: { and: [...], or: [...] }builds a filter that requires everything in both lists, so rows matching oneorbranch are dropped (graph-node#6809). Reproduced in a unit test.- An aggregation bucket is never rolled up if the subgraph restarts, or sees a one-block reorg, just after an empty bucket (graph-node#6808). Because it depends on when each indexer restarts, two indexers on the same subgraph can disagree about the same hour.
loadRelatedreturns half an entity after asavewithout aloadin the same block (graph-node#6810). Reproduced in a unit test.- File data source triggers that were waiting behind a failed handler are dropped until the node restarts (graph-node#6816), the part of a 2022 fix that did not cover every case.
Some tools have never worked
A handful of findings are less dangerous than embarrassing. graphman chain call-cache remove --max-contracts fails on every chain, because the SQL takes extract(day from ...) of an integer and Postgres does not have one (graph-node#6805). graphman rewind --start-block always refuses to run (graph-node#6804); it has been reported twice before and two fix PRs were closed unmerged. And the polling block stream waits max(120, ...) seconds after an error where min was clearly meant, so every transient RPC failure costs each subgraph at least two minutes (graph-node#6817). That line dates from 2021.
What this is not
It is not a formal audit, and nobody should treat it as one. A day of reading 300,000 lines finds the bugs that are visible from the code; it does not find the ones that need a running network to show themselves. Two-thirds of the findings were confirmed by reading rather than running, and some of those will turn out to be wrong, or right for reasons the maintainers will explain better than we did. We will say so here when they do.
It also did not cover everything that matters. The Horizon contracts, graph-tally (the TAP library underneath both indexer-rs and the gateway), stable-hash (which the PoI is built on), the network subgraph, the Rewards Eligibility Oracle and graph-tooling were all out of scope. So were parts of the four we did read: gnd, graph-node's non-Ethereum chains, and the GraphQL prefetch internals. The contracts in particular deserve a proper audit and a bug bounty report rather than a GitHub issue, and that is how we intend to treat anything we find there.
Further reading
All 44 issues are public and were filed on 27 November 2026:
- graph-node: #6803 to #6820
- gateway-x: #1235 to #1241
- indexer-rs: #1130 to #1139
- indexer: #1268 to #1276
If you run any of this software and recognise a symptom in one of them, a comment on the issue with your logs is worth more to the maintainers than anything in this post.