This issue can occur when running an aggregation pipeline...
High severity
Unreviewed
Published
Jun 10, 2026
to the GitHub Advisory Database
•
Updated Jun 10, 2026
Description
Published by the National Vulnerability Database
Jun 9, 2026
Published to the GitHub Advisory Database
Jun 10, 2026
Last updated
Jun 10, 2026
This issue can occur when running an aggregation pipeline that uses the internal $exchange stage configured with key-range partitioning and order-preserving delivery. If a single key range produces enough documents to fill its exchange buffer (that is, many results are routed to the same consumer), the server reaches the code path where a full per-consumer buffer is detected but the internal "high watermark" for that key range is not updated as intended.
References