# Post-mortem: ballot-query flaw could have skewed Sky poll results

Published 2026-12-03 · Crypto.world Team · Crypto.world

> Skybase detailed a governance portal flaw that could have excluded ballots from polls with more than 1,000 votes. The post-mortem says no published poll result was affected and a fix reached production in early October 2026.

A flaw in the Sky Governance Portal could have left later ballots out of a poll tally once a poll exceeded 1,000 ballots, according to a [Sky Forum](https://forum.skyeco.com/t/post-mortem-for-immunefi-bug-report-90100/28569) post-mortem published December 3. No published poll result was affected and no user funds were at risk, the post says.

A security report submitted through the Immunefi bug bounty program on August 23, 2026, identified the issue. At the time, no poll served by the portal had more than about 42 votes, according to the post-mortem.

## Ballots cut off at the limit

The portal requested poll ballots in a single query without pagination, while the indexer capped each response at 1,000 rows without returning an error or pagination information, the post says. As a result, a poll with more than 1,000 ballots would have been tallied using only the earliest 1,000, potentially allowing someone who cast many early ballots to influence the published result.

The team had pagination for those queries on its backlog but had not implemented it when the report arrived, according to the post-mortem. It says the whitehat demonstrated that a result could be changed in a simulation using test voters outside the production system, and that no real poll was affected.

## Tests and wider queries

Skybase's governance team confirmed the underlying defect in a read-only test against production data: an Arbitrum poll had 1,583 ballots in the indexer, but the portal query returned exactly 1,000, the post says. A review found the same cap affected other data, including incomplete vote history weights and delegation history for the largest delegates.

In one case, delegation history stopped at 1,000 of more than 6,000 events and a delegate's vote history showed a stale voting weight, according to the post-mortem. The fix was released to production in early October 2026.

## Changes and report outcome

A shared pagination helper was added to portal queries that could exceed the cap, including queries for ballots, voter weights, the delegate list and histories, the post says. It says the helper continues until the indexer returns an empty page and raises an error at its page limit rather than returning partial data.

The poll tally now raises an error if the delegate list cannot be loaded and does not cache that result, according to the post-mortem. Tests were added using a mock indexer enforcing the cap, and tallies for polls 1600 to 1650 matched the published results exactly.

The report was classified as Low and closed as informative because only Critical reports are in scope for the portal and no poll outcome changed.

## Sources

1. Original source [Sky Forum](https://forum.skyeco.com/t/post-mortem-for-immunefi-bug-report-90100/28569) forum.skyeco.com

## Related stories

- [Post-mortem: data bug inflated a Sky delegate’s published voting power](https://crypto.world/news/sky-delegate-voting-power-data-bug)
- [Sky proposes raising MKR-to-SKY migration penalty to 6%](https://crypto.world/news/sky-proposes-december-mkr-sky-migration-penalty-increase)
- [Sky Forum Member Proposes stUSDS Buybacks and 10% Rate](https://crypto.world/news/sky-forum-stusds-liquidity-protection-plan)
- [Sky proposal would separate Spark savings funds across networks](https://crypto.world/news/sky-proposes-spark-savings-changes-four-networks)
- [Grove Labs proposes lower swap limits and 800,000 USDS grant](https://crypto.world/news/grove-labs-proposes-december-swap-limits-treasury-transfer)

## Explore

[More articles](https://crypto.world/news)

---

Canonical: https://crypto.world/news/sky-governance-portal-ballot-query-vulnerability
