CVE-2024-40633: Sylius has a security vulnerability via adjustments API endpoint
Impact A security vulnerability was discovered in the /api/v2/shop/adjustments/{id} endpoint, which retrieves order adjustments based on incremental integer IDs. The vulnerability allows an attacker to enumerate valid adjustment IDs and retrieve order tokens. Using these tokens, an attacker can access guest customer order details - sensitive guest customer information.
Published Jul 17, 2024 · Updated Mar 9, 2026
Affected packages
sylius/sylius
- Ecosystem
- Composer (PHP)
- Affected
- >= 1.13.0-alpha.1, < 1.13.4
- Fixed in
- 1.13.4
- Check
composer show sylius/sylius
sylius/sylius
- Ecosystem
- Composer (PHP)
- Affected
- >= 1.12.0-alpha.1, < 1.12.19
- Fixed in
- 1.12.19
- Check
composer show sylius/sylius
sylius/sylius
- Ecosystem
- Composer (PHP)
- Affected
- < 1.9.12
- Fixed in
- 1.9.12
- Check
composer show sylius/sylius
sylius/sylius
- Ecosystem
- Composer (PHP)
- Affected
- >= 1.10.0-alpha.1, <= 1.10.15
- Fixed in
- 1.10.16
- Check
composer show sylius/sylius
sylius/sylius
- Ecosystem
- Composer (PHP)
- Affected
- >= 1.11.0-alpha.1, <= 1.11.16
- Fixed in
- 1.11.17
- Check
composer show sylius/sylius
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A security vulnerability was discovered in the /api/v2/shop/adjustments/{id} endpoint, which retrieves order adjustments based on incremental integer IDs. The vulnerability allows an attacker to enumerate valid adjustment IDs and retrieve order tokens. Using these tokens, an attacker can access guest customer order details - sensitive guest customer information.
Patches
The issue is fixed in versions: 1.9.12, 1.10.16, 1.11.17, 1.12.19, 1.13.4 and above. The /api/v2/shop/adjustments/{id} will always return 404 status.
Workarounds
Using YAML configuration:
Create config/api_platform/Adjustment.yaml file:
# config/api_platform/Adjustment.yaml
'%sylius.model.adjustment.class%':
itemOperations:
shop_get:
controller: ApiPlatform\Core\Action\NotFoundAction
read: false
output: falseOr using XML configuration:
Note: This is the only way of disabling the vulnerable endpoint for Sylius 1.9, as YAML configuration is not supported in that version.
Copy the original configuration from vendor:
# create directory if it doesn't exist
mkdir -p config/api_platform
cp vendor/sylius/sylius/src/Sylius/Bundle/ApiBundle/Resources/config/api_resources/Adjustment.xml config/api_platformAnd change the shop_get operation in copied config/api_platform/Adjustment.xml file:
<!-- config/api_platform/Adjustment.xml -->
...
<itemOperation name="shop_get">
<attribute name="method">GET</attribute>
<attribute name="path">/shop/adjustments/{id}</attribute>
<attribute name="controller">ApiPlatform\Core\Action\NotFoundAction</attribute>
<attribute name="read">false</attribute>
<attribute name="output">false</attribute>
</itemOperation>
...Update your API platform paths config if needed so the new configuration file is loaded:
# config/packages/api_platform.yaml
api_platform:
mapping:
paths:
- '%kernel.project_dir%/vendor/sylius/sylius/src/Sylius/Bundle/ApiBundle/Resources/config/api_resources'
...
- '%kernel.project_dir%/config/api_platform'For more information
If you have any questions or comments about this advisory:
- Open an issue in Sylius issues
- Email us at [[email protected]](mailto:[email protected])
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-53637
Sylius: Cart FormComponent allows modification or deletion of an already-completed order
medium6.5Jul 9, 2026CVE-2026-53638
Sylius: Channel-based payment method restriction bypass on shop account orders API endpoint
medium4.3Jul 9, 2026CVE-2026-53639
Sylius: IDOR on Shop Payment Request API endpoints
medium6.3Jul 9, 2026CVE-2026-31819
Sylius has an Open Redirect via Referer Header
medium6.9Mar 11, 2026CVE-2026-31820
Sylius affected by IDOR in Cart and Checkout LiveComponents
high7.1Mar 11, 2026CVE-2026-31821
Sylius is Missing Authorization in API v2 Add Item Endpoint
medium6.9Mar 11, 2026
