CVE-2026-31825 Details
Description
Sylius is an Open Source eCommerce Framework on Symfony. Sylius API filters ProductPriceOrderFilter and TranslationOrderNameAndLocaleFilter pass user-supplied order direction values directly to Doctrine's orderBy() without validation. An attacker can inject arbitrary DQL. The issue is fixed in versions: 1.9.12, 1.10.16, 1.11.17, 1.12.23, 1.13.15, 1.14.18, 2.0.16, 2.1.12, 2.2.3 and above.
A vulnerability exists in Sylius versions through 1.9.11, 1.10.0 through 1.10.15, 1.11.0 through 1.11.16, 1.12.0 through 1.12.22, 1.13.0 through 1.13.14, 1.14.0 through 1.14.17, 2.0.0 through 2.0.15, 2.1.0 through 2.1.11, and 2.2.0 through 2.2.2. The issue arises in the Sylius API filters 'ProductPriceOrderFilter' and 'TranslationOrderNameAndLocaleFilter', which improperly handle user-supplied order direction values. These values are passed directly to Doctrine's 'orderBy()' method without any validation, allowing attackers to inject arbitrary Doctrine Query Language (DQL).
Users can update to Sylius versions 1.9.12, 1.10.16, 1.11.17, 1.12.23, 1.13.15, 1.14.18, 2.0.16, 2.1.12, or 2.2.3. Alternatively, an 'EventSubscriber' can be created to sanitize 'order' query parameters on API routes before they reach the vulnerable filters.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Sylius/Sylius/security/advisories/GHSA-xcwx-r2gw-w93m | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
| CWE-943 | Improper Neutralization of Special Elements in Data Query Logic | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sylius sylius | < 1.9.12 >= 1.10.0, < 1.10.16 >= 1.11.0, < 1.11.17 >= 1.12.0, < 1.12.23 >= 1.13.0, < 1.13.15 >= 1.14.0, < 1.14.18 >= 2.0.0, < 2.0.16 >= 2.1.0, < 2.1.12 >= 2.2.0, < 2.2.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | Initial Analysis | [email protected] |
| Mar 10, 2026 | New CVE Received | [email protected] |