CVE-2019-12186: XSS
An issue was discovered in Sylius products. Missing input sanitization in sylius/sylius 1.0.x through 1.0.18, 1.1.x through 1.1.17, 1.2.x through 1.2.16, 1.3.x through 1.3.11, and 1.4.x through 1.4.3 and sylius/grid 1.0.x through 1.0.18, 1.1.x through 1.1.18, 1.2.x through 1.2.17, 1.3.x through 1.3.12, 1.4.x through 1.4.4, and 1.5.0 allows an attacker (an admin in the sylius/sylius case) to perform XSS by injecting malicious code into a field displayed in a grid with the "string" field type. The contents are an object, with malicious code returned by the toString() method of that object.
Other sources
CVE-2019-12186: XSS injection in the Grid component
Grid component of Sylius omits HTML input sanitisation while rendering object implementing toString() method through the string field type.
Affected Software
Event History
Frequently Asked Questions
What is CVE-2019-12186?
CVE-2019-12186 is a vulnerability that allows for XSS injection in the Grid component of Sylius products.
How severe is CVE-2019-12186?
CVE-2019-12186 has a severity rating of 4.8 out of 10.
Which software versions are affected by CVE-2019-12186?
The affected software versions include sylius/sylius 1.0.x through 1.0.18, 1.1.x through 1.1.17, 1.2.x through 1.2.16, 1.3.x through 1.3.11, and 1.4.x through 1.4.3, and sylius/grid 1.0.x through 1.0.18, 1.1.x through 1.1.18, 1.2.x through 1.2.17, 1.3.x through 1.3.13, and 1.4.x through 1.4.5.
How can I fix CVE-2019-12186?
To fix CVE-2019-12186, update your sylius/sylius, sylius/grid, and grid-bundle packages to version 1.5.1, 1.4.5, or 1.3.13 respectively.
What is the Common Weakness Enumeration (CWE) of CVE-2019-12186?
The CWE of CVE-2019-12186 is CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').