Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. sylius/sylius
  4. ›
  5. CVE-2026-31825

CVE-2026-31825: Sylius has a DQL Injection via API Order Filters

March 11, 2026

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:

GET /api/v2/shop/products?order[price]=ASC,%20variant.code%20DESC

References

  • github.com/Sylius/Sylius
  • github.com/Sylius/Sylius/security/advisories/GHSA-xcwx-r2gw-w93m
  • github.com/advisories/GHSA-xcwx-r2gw-w93m
  • nvd.nist.gov/vuln/detail/CVE-2026-31825

Code Behaviors & Features

Detect and mitigate CVE-2026-31825 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.12, all versions starting from 1.10.0 before 1.10.16, all versions starting from 1.11.0 before 1.11.17, all versions starting from 1.12.0 before 1.12.23, all versions starting from 1.13.0 before 1.13.15, all versions starting from 1.14.0 before 1.14.18, all versions starting from 2.0.0 before 2.0.16, all versions starting from 2.1.0 before 2.1.12, all versions starting from 2.2.0 before 2.2.3

Fixed 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

Solution

Upgrade to versions 1.10.16, 1.11.17, 1.12.23, 1.13.15, 1.14.18, 1.9.12, 2.0.16, 2.1.12, 2.2.3 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  • CWE-943: Improper Neutralization of Special Elements in Data Query Logic

Source file

packagist/sylius/sylius/CVE-2026-31825.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:16 +0000.