Am I affected?

type your ash_graphql version to check

Description

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.

Weaknesses & attack patterns

Weakness

CWE-209 · Generation of Error Message Containing Sensitive Information in catalog → MITRE ↗

Attack patterns

CAPEC-54 · Query System for Information MITRE ↗

Affected — Hex / ash_graphql Hex.pm ↗ Repository ↗

≥ 1.9.0 < 1.11.0 affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_graphql:*:*:*:*:*:*:*:*
version type semver
modules · source files · routines
modules 'Elixir.AshGraphql.Errors'
source files lib/graphql/errors.ex
routines 'Elixir.AshGraphql.Errors':to_errors/6

Affected — GitHub / ash-project/ash_graphql Repository ↗

≥ 6d2d8d9 < 78e90d3 affected
every other version: unaffected
cpe cpe:2.3:a:ash-project:ash_graphql:*:*:*:*:*:*:*:*
version type git
modules · source files · routines
modules 'Elixir.AshGraphql.Errors'
source files lib/graphql/errors.ex
routines 'Elixir.AshGraphql.Errors':to_errors/6

References

Credits

Peter Ullrich Finder Reporter
Jonatan Männchen / EEF Coordinator
Zach Daniel / Ash Project Remediation developer

CVSS breakdown

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Exploitability

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None

Vulnerable System

Confidentiality
Low
Integrity
None
Availability
None

Subsequent Systems

Confidentiality
None
Integrity
None
Availability
None
« All CVEs