{"id":"CVE-2019-12186","aliases":["CVE-2019-12186","GHSA-rc5r-697f-28x6"],"related":[],"kind":"vulnerability","state":"published","title":"XSS injection in the Grid component of Sylius","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Grid component of Sylius omits HTML input sanitisation while rendering object implementing __toString() method through the string field type.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se descubrió un problema en los productos Sylius. Una perdida  de saneamiento de la entrada en sylius/sylius versiones 1.0.x hasta 1.0.18, 1.1.x hasta 1.1.17, 1.2.x hasta 1.2.16, 1.3.x hasta 1.3.11 y 1.4.x hasta 1.4.3 y sylius/grid versiones 1.0.x hasta 1.0.18, versiones 1.1.x hasta 1.1.18, versiones 1.2.x hasta 1.2.17, versiones 1.3.x hasta 1.3.12, versiones 1.4.x hasta 1.4.4 y versión 1.5.0, permite a un atacante (un administrador en el caso de sylius/sylius) llevar a cabo un ataque de tipo XSS mediante una inyección de código malicioso en un campo que se muestra en una cuadrícula con el tipo de campo \"string\". El contenido es un objeto, con código malicioso devuelto por el método __toString() de ese objeto.","source":"nvd"}],"published":"2019-12-31T14:21:39.000Z","modified":"2026-09-10T03:48:43.977Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0","status":"affected","fixed":"1.1.19"}],"ecosystem":"Packagist","package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.2.0","status":"affected","fixed":"1.2.18"}],"ecosystem":"Packagist","package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.3.0","status":"affected","fixed":"1.3.13"}],"ecosystem":"Packagist","package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.4.0","status":"affected","fixed":"1.4.5"}],"ecosystem":"Packagist","package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.5.0","status":"affected","fixed":"1.5.1"}],"ecosystem":"Packagist","package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0","status":"affected","fixed":"1.1.19"}],"ecosystem":"Packagist","package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.2.0","status":"affected","fixed":"1.2.18"}],"ecosystem":"Packagist","package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.3.0","status":"affected","fixed":"1.3.13"}],"ecosystem":"Packagist","package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.4.0","status":"affected","fixed":"1.4.5"}],"ecosystem":"Packagist","package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.5.0","status":"affected","fixed":"1.5.1"}],"ecosystem":"Packagist","package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0","status":"affected","fixed":"1.1.18"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.2.0","status":"affected","fixed":"1.2.17"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.3.0","status":"affected","fixed":"1.3.12"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.4.0","status":"affected","fixed":"1.4.4"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0.0","lastAffected":"1.0.18"},{"status":"affected","introduced":"1.1.0","lastAffected":"1.1.18"},{"status":"affected","introduced":"1.2.0","lastAffected":"1.2.17"},{"status":"affected","introduced":"1.3.0","lastAffected":"1.3.12"},{"status":"affected","introduced":"1.4.0","lastAffected":"1.4.4"},{"status":"affected","version":"1.5.0"}],"vendor":"sylius","product":"grid","cpe":"cpe:2.3:a:sylius:grid:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"1.0.0","lastAffected":"1.0.18"},{"status":"affected","introduced":"1.1.0","lastAffected":"1.1.17"},{"status":"affected","introduced":"1.2.0","lastAffected":"1.2.16"},{"status":"affected","introduced":"1.3.0","lastAffected":"1.3.11"},{"status":"affected","introduced":"1.4.0","lastAffected":"1.4.3"}],"vendor":"sylius","product":"sylius","cpe":"cpe:2.3:a:sylius:sylius:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://sylius.com/blog/cve-2019-12186/","tags":["vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12186","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/sylius/grid/CVE-2019-12186.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/sylius/sylius/CVE-2019-12186.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://sylius.com/blog/cve-2019-12186","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-12186","url":"https://www.cve.org/CVERecord?id=CVE-2019-12186","licence":"CVE Terms of Use","modified":"2024-08-04T23:10:30.817Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rc5r-697f-28x6","url":"https://github.com/advisories/GHSA-rc5r-697f-28x6","licence":"CC-BY-4.0","modified":"2026-09-10T03:48:43.977Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-12186","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12186","licence":"Public domain","modified":"2026-06-17T02:14:13.150Z"}],"updatedAt":"2026-11-25T22:57:49.128Z","epss":{"score":0.00552,"percentile":0.47531,"date":"2026-12-01T12:00:22.000Z"}}