CVE-2026-81643
Beschrijving NL
Een kwetsbaarheid voor onjuiste autorisatie in ash-project ash_graphql levert GraphQL-abonnementspayloads voor records die een abonnee niet mag inzien. In AshGraphql.Subscription.Batcher lost do_send/5 de eerste notificatie van een batch op en filtert deze met should_send?/1, waardoor resultaten met fouten die zijn gecodeerd als forbidden of not_found, of die geen code bevatten, worden verwijderd. Dit is juist om te voorkomen dat ongeautoriseerde resultaten openbaar worden gemaakt. De resterende meldingen in de batch worden uit het proceswoordenboek gelezen, opnieuw door de pijplijn uitgevoerd en zonder dat filter aan de uitgaande resultaten toegevoegd. Ze bereiken pubsub.publish_subscription/2 en de not is_nil(record) guard laat alleen NIL-records vallen, geen foutdragende resultaten. Elke twee kwalificerende meldingen die binnen het standaard batchinterval van één seconde aankomen, zijn voldoende en batching is het standaardpad. De oplossing is van toepassing should_send?/1 op de hele batch. Dit probleem heeft invloed op ash_graphql: van 1.4.0 voor 1.11.0.
Origineel (Engels) tonen
Incorrect Authorization vulnerability in ash-project ash_graphql delivers GraphQL subscription payloads for records a subscriber is not authorized to see.
In AshGraphql.Subscription.Batcher, do_send/5 resolves the first notification of a batch and filters it with should_send?/1, which drops results whose errors are coded forbidden or not_found or carry no code, precisely so that unauthorized results are not disclosed. The remaining notifications in the batch are read from the process dictionary, re-run through the pipeline, and appended to the outgoing results without that filter. They reach pubsub.publish_subscription/2, and the not is_nil(record) guard drops only nil records, not error-carrying results. Any two qualifying notifications arriving within the default one-second batch interval suffice, and batching is the default path. The fix applies should_send?/1 to the whole batch.
This issue affects ash_graphql: from 1.4.0 before 1.11.0.