CVE-2026-78693
Beschrijving NL
Het genereren van een foutbericht met een kwetsbaarheid voor gevoelige informatie in ash-project ash_graphql stelt een externe client in staat om interne veldnamen te lezen die door een applicatie zijn error_handler zijn geconfigureerd om te redigeren. In AshGraphql.Errors wordt elke fout doorgegeven aan de geconfigureerde error_handler en wordt de geretourneerde kaart samengevoegd met het pad van de pre-handler via Map.put_new(afgehandeld, :pad, pad). Omdat put_new alleen doorstuurt naar de handler wanneer de handler zelf:path instelt, een ontsmettende handler die een nieuwe kaart retourneert of verwijdert :path heeft die beslissing teruggedraaid. Het opnieuw geïnjecteerde pad komt van build_error_path/5, dat terugvalt op ruwe interne Ash-attribuut- en argumentnamen wanneer er geen field_names mapping is geconfigureerd. Een validatiefout op een niet-blootgesteld of genest veld retourneert daarom interne namen in het GraphQL-foutpad, waardoor de redactie van de applicatie wordt verslagen. Dit probleem heeft invloed op ash_graphql: van 1.9.0 voor 1.11.0.
Origineel (Engels) tonen
Generation of Error Message Containing Sensitive Information vulnerability in ash-project ash_graphql allows a remote client to read internal field names that an application configured its error_handler to redact.
In AshGraphql.Errors, each error is passed to the configured error_handler and the returned map is merged with the pre-handler path via Map.put_new(handled, :path, path). Because put_new defers to the handler only when the handler itself set :path, a sanitizing handler that returns a fresh map or deletes :path has that decision reverted. The re-injected path comes from build_error_path/5, which falls back to raw internal Ash attribute and argument names when no field_names mapping is configured. A validation failure on a non-exposed or nested field therefore returns internal names in the GraphQL error path, defeating the application's redaction.
This issue affects ash_graphql: from 1.9.0 before 1.11.0.