CVE-2026-31825

Sylius has a DQL Injection via API Order Filters

State
Published
Severity
5.3 Medium
Published
Mar 10, 2026
Updated
Mar 11, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NGitHub_M

Weaknesses

  • 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

Affected Products

ProductVersions
SyliusSylius
  • >= 2.2.0, < 2.2.3Affected
  • >= 2.1.0, < 2.1.12Affected
  • >= 2.0.0, < 2.0.16Affected
  • >= 1.14.0, < 1.14.18Affected
  • >= 1.13.0, < 1.13.15Affected
  • >= 1.12.0, < 1.12.23Affected
  • >= 1.11.0, < 1.11.17Affected
  • >= 1.10.0, < 1.10.16Affected
  • < 1.9.12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.