GHSL-2026-055: Unauthorized access to PII in Sylius - CVE-2026-31820
An authenticated customer can view addresses in the address book of other customers by supplying an arbitrary addressId to a LiveComponent action. This allows enumeration of sequential IDs to disclose PII such as full name, phone number, and postal address.
A vulnerability was identified in Sylius v2.2.3-dev (GHSL-2026-055) where an authenticated customer can access and view addresses in the address book of other customers, potentially leading to unauthorized access of sensitive information.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Sylius is an e-commerce platform built on Symfony. The affected feature is the address book used during checkout: a logged-in customer can save several addresses and pick one of them when filling in the shipping or billing address. The shop front end is implemented with Symfony UX LiveComponents, so selecting an address in the checkout form triggers an AJAX call to a LiveComponent action rather than a full page reload. That action is supposed to take the chosen address, load it, and return the form values so the address fields are populated in the browser.
The report covers Sylius v2.2.3-dev and was filed as GHSL-2026-055, later assigned CVE-2026-31820. The issue is that the LiveComponent action that loads the address does not check who owns it.
Setup
- Target: Sylius, tested version v2.2.3-dev.
- Two accounts are needed: a victim and an attacker, both ordinary authenticated customers.
- The victim must have at least one address in their address book. The proof of concept has the victim place an order and go through checkout, which is where the address book is used.
- Tools: the browser developer console with persistent logging enabled. In Chrome this is the
Preserve logcheckbox; in Firefox it is thedevtools.webconsole.persistlogsetting inabout:config, which the report notes does not always work. The attacker side of the proof of concept uses Firefox, because the request is replayed with the built-inEdit and Resendfeature.
Finding it
The addressFieldUpdated method in src/Sylius/Bundle/ShopBundle/Twig/Component/Checkout/Address/FormComponent.php (line 82 in the referenced commit) takes addressId as a #[LiveArg]. A LiveArg is a direct, client-controlled HTTP request parameter and, importantly, is not covered by LiveComponent's prop checksum. The method then calls $this->addressRepository->find($addressId) (line 84), a plain lookup by primary key with no ownership validation. The address that comes back is turned into form values and rendered into the HTML response.
#[LiveListener(AddressBookComponent::SYLIUS_SHOP_ADDRESS_UPDATED)]
public function addressFieldUpdated(#[LiveArg] mixed $addressId, #[LiveArg] string $field): void
{
$address = $this->addressRepository->find($addressId); // Line 84 - NO OWNERSHIP CHECK
if (null === $address) {
return;
}
$newAddress = [];
if (null === $this->addressFormValuesModifiers) {
$newAddress = $this->createAddressArrayFromEntity($address); // Line 91
} else {
foreach ($this->addressFormValuesModifiers as $modifier) {
$newAddress = $modifier->modify($newAddress, $address); // Line 94
}
}
$this->formValues[$field] = $newAddress; // Line 98 - Address data placed in form values, returned in response HTML
}
Two things make this look wrong. First, the identifier comes straight from the request and is not protected by the checksum that LiveComponent normally uses to stop clients from tampering with component properties. Second, the repository call is a generic find by primary key, so any existing address is returned regardless of which customer it belongs to. Because addressId is a sequential database ID, it can be enumerated to walk through other customers' addresses.
Exploitation
Step 1: Create the victim's address and capture the request
Create two users, victim and attacker. Log in as the victim, place an order and proceed to checkout. Open the browser developer console and turn on persistent logging so the requests survive navigation.
Select an address from the address book and click "Next". In the Network tab, look for a request to:
_components/sylius_shop:checkout:address:form/addressFieldUpdated
Find the addressId in the response and record it as victim_address_id. This is the identifier the component used for the victim's own address, and it is the value the attacker will substitute.
Step 2: Reproduce the request as the attacker
Log out as the victim and log in as the attacker, using Firefox. Follow the same steps to reach checkout and trigger the addressFieldUpdated request. Optionally press "Back to store" in the UI; the report is not sure whether this step is necessary.
Step 3: Replay the request with the victim's address ID
In Firefox, right-click the request and choose Edit and Resend. In the body section, change addressId to victim_address_id and send it.
One detail matters here: the browser sometimes parses the request body into JSON, but the request has to be sent as multipart form data. Use the raw data from the browser response as the body, not the JSON representation.
Step 4: Read the response
Send the request and base64-decode the response. It should contain the victim's address. The response is the LiveComponent HTML payload, and the address data has been placed into the form values by line 98 of the method, so it comes back rendered in that HTML.
Root cause
The component trusts a client-supplied identifier. addressId arrives as a #[LiveArg], which is a plain request parameter and is not protected by LiveComponent's prop checksum, so the client can set it to any value. The handler then loads the record with $this->addressRepository->find($addressId), a lookup by primary key that has no notion of the current user, and copies the resulting entity into the form values that are returned in the response HTML. There is no ownership check anywhere between the request parameter and the rendered output.
Because the identifier is a sequential database ID, guessing other customers' addresses does not require any leaked value: iterating IDs is enough. The checksum mechanism that LiveComponent provides for component properties does not apply to LiveArg values, so it offered no protection here.
Impact
This is an information disclosure of PII. Any authenticated customer can read any other customer's address data, including full name, phone number, company name and complete postal address, by iterating address IDs. The attacker needs an account on the shop; because address IDs are sequential, iterating them is enough to reach other customers' addresses. The report describes the exposure as covering all customers in the system.
Fix
The report does not describe the patch. The GHSA for this issue was published on 2026-03-09, and the advisory is the place to look for the change. What the code requires is an ownership check: the address loaded for addressId should be verified to belong to the current customer before its data is placed into the form values, and the lookup should be scoped to that customer rather than performed as a bare find by primary key.
Variants to test
- Other LiveComponent actions that accept a
#[LiveArg]identifier and load an entity by primary key. A positive result is a response that contains another user's record when you substitute an ID you do not own. - Any LiveComponent argument that is not covered by the prop checksum and feeds a repository lookup. If changing the value in the replayed request changes whose data comes back, the checksum is not protecting that path.
- Sequential identifiers in address books, saved payment profiles, order histories and similar per-customer collections. A positive result is that incrementing or decrementing the ID returns a different customer's data instead of an error or an empty result.
- Replaying the same request as a different authenticated user after capturing it from the first account. If the response is identical apart from the substituted ID, ownership is not being enforced.
Hunting notes
This kind of bug hides in component-based front ends where small AJAX actions take identifiers from the request. The signals during recon are LiveComponent or similar endpoints in the network traffic, arguments that look like database IDs, and responses that embed record data in HTML. When you see an endpoint such as _components/.../addressFieldUpdated carrying an addressId, check whether the value is protected by a checksum and whether the server scopes the lookup to the session user.
The proof of concept uses two ordinary accounts and a replayed request with the victim's address ID. That is enough to establish cross-tenant access to PII without needing any privileged role. The report also notes that the issue was found with the GitHub Security Lab Taskflow Agent and manually verified by GHSL team members.
What happened, in plain words
Sylius is a piece of software that shops use to run an online store. It is built on top of another piece of software called Symfony, which is a framework: a set of ready-made building blocks that developers use to assemble web applications faster. The part of Sylius affected here is the address book, the feature that lets a logged-in customer save several postal addresses (home, work, and so on) and pick one of them when they are filling in where an order should be shipped or billed.
When a customer picks a saved address during checkout, the page does not reload. Instead, a small background request is sent to the server, the server looks up the chosen address and sends back the details so the form fields fill in. This kind of background request is often called an AJAX call: the browser talks to the server behind the scenes while the page stays put.
The problem is that the server-side code that handles this request takes an identifier for the address straight from the request and looks the address up without asking whether the person making the request actually owns it. An identifier here is just a number that points at a row in the shop's database, like a row number in a spreadsheet. Because those numbers are handed out in sequence (1, 2, 3, ...), anyone with an account can try other numbers and read other customers' addresses: their full name, phone number, company name and complete postal address.
The issue was filed as GHSL-2026-055 and later given the identifier CVE-2026-31820. A CVE is a public catalogue number for a known security flaw, so people can refer to the same bug unambiguously. The report was made against Sylius version v2.2.3-dev. The -dev suffix means it is a development build, not a final release.
Context
Sylius is an e-commerce platform built on Symfony. The affected feature is the address book used during checkout: a logged-in customer can save several addresses and pick one of them when filling in the shipping or billing address. The shop front end is implemented with Symfony UX LiveComponents, so selecting an address in the checkout form triggers an AJAX call to a LiveComponent action rather than a full page reload. That action is supposed to take the chosen address, load it, and return the form values so the address fields are populated in the browser.
A LiveComponent is a Symfony building block for pieces of a page that can update themselves without a full reload. Each such piece has actions: named server-side routines the browser can call. The action in question is supposed to do one simple job: given an address identifier, fetch that address and send its details back so the form can show them.
The report covers Sylius v2.2.3-dev and was filed as GHSL-2026-055, later assigned CVE-2026-31820. The issue is that the LiveComponent action that loads the address does not check who owns it.
Setup
- Target: Sylius, tested version v2.2.3-dev.
- Two accounts are needed: a victim and an attacker, both ordinary authenticated customers. "Authenticated" simply means logged in. Neither account needs any special role or administrator rights.
- The victim must have at least one address in their address book. The proof of concept has the victim place an order and go through checkout, which is where the address book is used.
- Tools: the browser developer console with persistent logging enabled. The developer console is the built-in panel in every browser (usually opened with F12) that shows the requests a page makes. "Persistent logging" means the list of requests is kept even when the page navigates to another page; without it, the list is wiped on every reload. In Chrome this is the
Preserve logcheckbox; in Firefox it is thedevtools.webconsole.persistlogsetting inabout:config, which the report notes does not always work. The attacker side of the proof of concept uses Firefox, because the request is replayed with the built-inEdit and Resendfeature. Replaying a request means sending the same request again, possibly with small changes, without going through the page's normal buttons.
Finding it
The addressFieldUpdated method in src/Sylius/Bundle/ShopBundle/Twig/Component/Checkout/Address/FormComponent.php (line 82 in the referenced commit) takes addressId as a #[LiveArg]. A LiveArg is a direct, client-controlled HTTP request parameter and, importantly, is not covered by LiveComponent's prop checksum. The method then calls $this->addressRepository->find($addressId) (line 84), a plain lookup by primary key with no ownership validation. The address that comes back is turned into form values and rendered into the HTML response.
A few of those words need unpacking. An HTTP request parameter is a value the browser sends to the server as part of a request, for example a form field. "Client-controlled" means the browser decides what goes in it, so an attacker can put in anything. A checksum is a short code computed from data so that tampering can be detected: if someone changes the data, the code no longer matches. LiveComponent uses one to protect the properties of a component, so a client cannot quietly change them. A #[LiveArg] is not covered by that protection, which means the value arrives exactly as the client sent it. A repository is the part of the code that talks to the database for one kind of record; find is a generic lookup by primary key, the unique number that identifies a row. Primary key is just the database's official name for that row number.
#[LiveListener(AddressBookComponent::SYLIUS_SHOP_ADDRESS_UPDATED)]
public function addressFieldUpdated(#[LiveArg] mixed $addressId, #[LiveArg] string $field): void
{
$address = $this->addressRepository->find($addressId); // Line 84 - NO OWNERSHIP CHECK
if (null === $address) {
return;
}
$newAddress = [];
if (null === $this->addressFormValuesModifiers) {
$newAddress = $this->createAddressArrayFromEntity($address); // Line 91
} else {
foreach ($this->addressFormValuesModifiers as $modifier) {
$newAddress = $modifier->modify($newAddress, $address); // Line 94
}
}
$this->formValues[$field] = $newAddress; // Line 98 - Address data placed in form values, returned in response HTML
}
Line by line, in plain words:
#[LiveListener(...)]marks this method as the code that runs when the address book announces that an address was selected. It is the wiring that connects the button in the page to this function.- The function signature says it receives two values from the browser:
$addressId(which address was picked) and$field(which form field to fill in). Both are marked#[LiveArg], meaning they come straight from the request. $this->addressRepository->find($addressId)asks the database for the address with that number. The comment on the line says it plainly: there is no ownership check. Nothing here asks "does this address belong to the logged-in customer?".- If no address exists with that number, the function returns early and does nothing. This is the only guard, and it only checks existence, not ownership.
$newAddress = []starts an empty array, which in PHP is an ordered collection of values.- If no modifiers are configured,
createAddressArrayFromEntity($address)converts the database record into that array of form values. - Otherwise, each modifier gets a chance to adjust the array. Modifiers are small pluggable pieces that can reshape the data before it is shown.
- Finally,
$this->formValues[$field] = $newAddressstores the address data under the requested field name. Those form values are what get rendered into the HTML that goes back to the browser.
Two things make this look wrong. First, the identifier comes straight from the request and is not protected by the checksum that LiveComponent normally uses to stop clients from tampering with component properties. Second, the repository call is a generic find by primary key, so any existing address is returned regardless of which customer it belongs to. Because addressId is a sequential database ID, it can be enumerated to walk through other customers' addresses. Enumerating means trying values one after another, 1, 2, 3 and so on, to see what comes back.
Exploitation
Step 1: Create the victim's address and capture the request
Create two users, victim and attacker. Log in as the victim, place an order and proceed to checkout. Open the browser developer console and turn on persistent logging so the requests survive navigation.
Why this step: the victim needs a real address in the address book so there is something to steal, and the request the victim's own browser makes shows exactly what a legitimate request looks like. Capturing it gives us a template to replay later.
Select an address from the address book and click "Next". In the Network tab, look for a request to:
_components/sylius_shop:checkout:address:form/addressFieldUpdated
This is the address of the LiveComponent action on the server. The Network tab is the part of the developer console that lists every request the page makes, with its address, its contents and the server's reply.
Find the addressId in the response and record it as victim_address_id. This is the identifier the component used for the victim's own address, and it is the value the attacker will substitute. The response is the server's reply; it contains the address data that filled in the form, and with it the number that points at the victim's record.
Step 2: Reproduce the request as the attacker
Log out as the victim and log in as the attacker, using Firefox. Follow the same steps to reach checkout and trigger the addressFieldUpdated request. Optionally press "Back to store" in the UI; the report is not sure whether this step is necessary.
Why this step: the attacker needs a request of their own, made with their own logged-in session, so that when the identifier inside it is swapped, the only thing that changes is which address is asked for. A session is how the server remembers who is logged in between requests; the browser holds a small piece of data (a cookie) that identifies it. If the attacker simply reused the victim's request, the server would see the victim's session and the test would prove nothing.
Step 3: Replay the request with the victim's address ID
In Firefox, right-click the request and choose Edit and Resend. In the body section, change addressId to victim_address_id and send it.
The body is the part of a request that carries the actual data, as opposed to the address it is sent to. Edit and Resend is a Firefox feature that lets you take a request that already happened, change it, and send it again.
One detail matters here: the browser sometimes parses the request body into JSON, but the request has to be sent as multipart form data. Use the raw data from the browser response as the body, not the JSON representation. JSON is a text format for structured data, and multipart form data is the format browsers use when submitting forms that may include files. They look similar but are not interchangeable; if the server expects the form format and gets JSON, it will not understand the request.
Step 4: Read the response
Send the request and base64-decode the response. It should contain the victim's address. The response is the LiveComponent HTML payload, and the address data has been placed into the form values by line 98 of the method, so it comes back rendered in that HTML.
Base64 is a way of writing arbitrary data using only ordinary text characters, so it can travel safely inside text-based formats. The server's reply is encoded this way, so it has to be decoded before it can be read as normal HTML. HTML is the language web pages are written in; here it is the markup the component sends back to fill in the form.
Root cause
The component trusts a client-supplied identifier. addressId arrives as a #[LiveArg], which is a plain request parameter and is not protected by LiveComponent's prop checksum, so the client can set it to any value. The handler then loads the record with $this->addressRepository->find($addressId), a lookup by primary key that has no notion of the current user, and copies the resulting entity into the form values that are returned in the response HTML. There is no ownership check anywhere between the request parameter and the rendered output.
An entity here just means a record in the application's data model, in this case one address. The chain is short: a number comes in from the browser, the database is asked for whatever record has that number, and the record's contents go back out. At no point does the code ask "is this the logged-in customer's address?".
Because the identifier is a sequential database ID, guessing other customers' addresses does not require any leaked value: iterating IDs is enough. The checksum mechanism that LiveComponent provides for component properties does not apply to LiveArg values, so it offered no protection here.
Impact
This is an information disclosure of PII. PII stands for Personally Identifiable Information: data that can identify a real person, such as a name, phone number or home address. Information disclosure is the security term for a flaw that lets someone see data they should not be able to see, as opposed to changing or deleting it.
Any authenticated customer can read any other customer's address data, including full name, phone number, company name and complete postal address, by iterating address IDs. The attacker needs an account on the shop; because address IDs are sequential, iterating them is enough to reach other customers' addresses. The report describes the exposure as covering all customers in the system.
Fix
The report does not describe the patch. The GHSA for this issue was published on 2026-03-09, and the advisory is the place to look for the change. A GHSA is a GitHub Security Advisory, the public notice GitHub publishes about a flaw in a project it hosts. What the code requires is an ownership check: the address loaded for addressId should be verified to belong to the current customer before its data is placed into the form values, and the lookup should be scoped to that customer rather than performed as a bare find by primary key.
In everyday terms: before handing over the address, the server should ask the database for "the address with this number, belonging to this logged-in customer". If the two do not match, the answer should be nothing at all.
Variants to test
These are other places where the same mistake might appear, useful for anyone checking a similar shop.
- Other LiveComponent actions that accept a
#[LiveArg]identifier and load an entity by primary key. A positive result is a response that contains another user's record when you substitute an ID you do not own. - Any LiveComponent argument that is not covered by the prop checksum and feeds a repository lookup. If changing the value in the replayed request changes whose data comes back, the checksum is not protecting that path.
- Sequential identifiers in address books, saved payment profiles, order histories and similar per-customer collections. A positive result is that incrementing or decrementing the ID returns a different customer's data instead of an error or an empty result.
- Replaying the same request as a different authenticated user after capturing it from the first account. If the response is identical apart from the substituted ID, ownership is not being enforced.
Hunting notes
This kind of bug hides in component-based front ends where small AJAX actions take identifiers from the request. The signals during recon are LiveComponent or similar endpoints in the network traffic, arguments that look like database IDs, and responses that embed record data in HTML. Recon (reconnaissance) means the early, exploratory phase of looking at how an application behaves before trying anything. When you see an endpoint such as _components/.../addressFieldUpdated carrying an addressId, check whether the value is protected by a checksum and whether the server scopes the lookup to the session user.
The proof of concept uses two ordinary accounts and a replayed request with the victim's address ID. That is enough to establish cross-tenant access to PII without needing any privileged role. Cross-tenant access means one customer reaching another customer's data, as if one tenant in a building could open another tenant's door. The report also notes that the issue was found with the GitHub Security Lab Taskflow Agent and manually verified by GHSL team members.
Glossary
- AJAX call: a request the browser sends to the server in the background, without reloading the page.
- Address book: the Sylius feature that stores a customer's saved postal addresses for use at checkout.
- Authenticated: logged in, with a valid session.
- Base64: a text encoding that represents arbitrary data using ordinary characters, so it can be carried inside text formats.
- Body: the part of an HTTP request that carries the data being sent, as opposed to the address it goes to.
- Checksum: a short code computed from data so that any change to the data can be detected.
- Client-controlled: a value that the browser (the client) decides, so an attacker can set it to anything.
- Cookie: a small piece of data the browser stores for a site and sends back with each request, often used to identify a logged-in session.
- Cross-tenant access: one customer or organisation reaching another's data.
- CVE: a public catalogue number assigned to a known security vulnerability.
- Developer console: the built-in browser panel that shows requests, responses and errors.
- Edit and Resend: a Firefox developer tool feature that lets you modify a past request and send it again.
- Entity: a record in the application's data model, such as one address.
- Enumerating: trying values one after another (1, 2, 3, ...) to discover what exists.
- GHSA: GitHub Security Advisory, the public notice GitHub publishes about a flaw in a hosted project.
- HTML: the markup language web pages are written in.
- HTTP request parameter: a value sent by the browser as part of a request, such as a form field.
- Information disclosure: a flaw that lets someone see data they should not be able to see.
- JSON: a text format for structured data.
- LiveArg: in Symfony LiveComponent, a method argument taken directly from the request and not covered by the component's checksum.
- LiveComponent: a Symfony building block for parts of a page that update themselves without a full reload.
- Multipart form data: the request format browsers use for form submissions, which can include files.
- Network tab: the part of the developer console that lists the requests a page makes and the replies it gets.
- PII: Personally Identifiable Information, data that can identify a real person.
- Primary key: the unique number the database uses to identify a row.
- Prop checksum: LiveComponent's protection that detects tampering with component properties.
- Recon: reconnaissance, the exploratory phase of studying an application's behaviour.
- Replaying: sending a previously captured request again, possibly with changes.
- Repository: the part of the code that reads and writes one kind of database record.
- Session: how the server remembers who is logged in across multiple requests.
- Symfony: a PHP framework, a set of building blocks for web applications.
- Sylius: an e-commerce platform built on Symfony.
- Vulnerability: a weakness in software that someone can abuse to do something the designers did not intend.