CVE-2019-12186 json
XSS injection in the Grid component of Sylius
published 2019-12-31 6 y ago modified 2026-09-10 1 mo ago also GHSA-rc5r-697f-28x6 , EUVD-2020-0393
- cvss
- 4.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 46%
- public exploits
- 0
- none known
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.
Patch / fix
- packagist sylius/grid 1.1.19, 1.2.18, 1.3.13, 1.4.5, 1.5.1
- packagist sylius/grid-bundle 1.1.19, 1.2.18, 1.3.13, 1.4.5, 1.5.1
- packagist sylius/sylius 1.1.18, 1.2.17, 1.3.12, 1.4.4
Exploit prediction
0.55% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | sylius/grid | >=1.0.0, <1.1.19 >=1.2.0, <1.2.18 >=1.3.0, <1.3.13 >=1.4.0, <1.4.5 >=1.5.0, <1.5.1 |
1.1.19 1.2.18 1.3.13 1.4.5 1.5.1 |
| packagist | sylius/grid-bundle | >=1.0.0, <1.1.19 >=1.2.0, <1.2.18 >=1.3.0, <1.3.13 >=1.4.0, <1.4.5 >=1.5.0, <1.5.1 |
1.1.19 1.2.18 1.3.13 1.4.5 1.5.1 |
| packagist | sylius/sylius | >=1.0.0, <1.1.18 >=1.2.0, <1.2.17 >=1.3.0, <1.3.12 >=1.4.0, <1.4.4 |
1.1.18 1.2.17 1.3.12 1.4.4 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
sylius.com
/blog/cve-2019-12186/
vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-12186
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/sylius/grid/CVE-2019-12186.yaml
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/sylius/sylius/CVE-2019-12186.yaml
web
-
sylius.com
/blog/cve-2019-12186
web
Sources
- CVE List CVE-2019-12186
- GitHub Advisory GHSA-rc5r-697f-28x6
- NVD CVE-2019-12186
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.