{"answers":{"affected":"28 open source packages ship an affected version, including sylius/grid, sylius/grid-bundle and sylius/sylius. It affects 2 products.","exploited":"There is no known exploitation of CVE-2019-12186 in the wild and no public exploit code.","fix":"Upgrade sylius/grid to a fixed version for your release line: 1.1.19, 1.2.18, 1.3.13 or 1.4.5.","what":"CVE-2019-12186 is a medium-severity cross-site scripting vulnerability in n/a, published on 31 Dec 2019. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2019-12186 and fix it if it is affected.\n\nWhat it is: CVE-2019-12186 is a medium-severity cross-site scripting vulnerability in n/a, published on 31 Dec 2019. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2019-12186 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- sylius/grid (Packagist): affected from 1.0.0; fixed in 1.1.19\n- sylius/grid (Packagist): affected from 1.0.0; fixed in 1.1.19\n- sylius/grid (Packagist): affected from 1.2.0; fixed in 1.2.18\n- sylius/grid (Packagist): affected from 1.2.0; fixed in 1.2.18\n- sylius/grid (Packagist): affected from 1.3.0; fixed in 1.3.13\n- sylius/grid (Packagist): affected from 1.3.0; fixed in 1.3.13\n- sylius/grid (Packagist): affected from 1.4.0; fixed in 1.4.5\n- sylius/grid (Packagist): affected from 1.4.0; fixed in 1.4.5\n- sylius/grid (Packagist): affected from 1.5.0; fixed in 1.5.1\n- sylius/grid (Packagist): affected from 1.5.0; fixed in 1.5.1\n- sylius/grid-bundle (Packagist): affected from 1.0.0; fixed in 1.1.19\n- sylius/grid-bundle (Packagist): affected from 1.0.0; fixed in 1.1.19\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-12186/ (Markdown: https://insights.sbomify.com/CVE-2019-12186/index.md)","id":"CVE-2019-12186","markdown":"https://insights.sbomify.com/CVE-2019-12186/index.md","name":"CVE-2019-12186","record":{"aliases":["GHSA-rc5r-697f-28x6"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Sylius e-commerce platform","requires_auth":"high_privilege","summary":"An attacker with admin privileges can inject malicious scripts into grid fields, leading to cross-site scripting attacks in the Sylius e-commerce platform.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"grid","vendor":"sylius"},{"product":"sylius","vendor":"sylius"}],"cvss":{"score":4.8,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"XSS injection in the Grid component of Sylius","id":"CVE-2019-12186","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2019"},"n_packages":28,"n_references":1,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2019-12189"},"packages":[{"ecosystem":"Packagist","fixed":["1.1.19"],"introduced":["1.0.0"],"last_affected":[],"package":"sylius/grid","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.1.19"],"introduced":["1.0.0"],"last_affected":[],"package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.2.18"],"introduced":["1.2.0"],"last_affected":[],"package":"sylius/grid","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.2.18"],"introduced":["1.2.0"],"last_affected":[],"package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.3.13"],"introduced":["1.3.0"],"last_affected":[],"package":"sylius/grid","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.3.13"],"introduced":["1.3.0"],"last_affected":[],"package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.4.5"],"introduced":["1.4.0"],"last_affected":[],"package":"sylius/grid","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.4.5"],"introduced":["1.4.0"],"last_affected":[],"package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.5.1"],"introduced":["1.5.0"],"last_affected":[],"package":"sylius/grid","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.5.1"],"introduced":["1.5.0"],"last_affected":[],"package":"sylius/grid","purl":"pkg:composer/sylius/grid","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.1.19"],"introduced":["1.0.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.1.19"],"introduced":["1.0.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.2.18"],"introduced":["1.2.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.2.18"],"introduced":["1.2.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.3.13"],"introduced":["1.3.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.3.13"],"introduced":["1.3.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.4.5"],"introduced":["1.4.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.4.5"],"introduced":["1.4.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.5.1"],"introduced":["1.5.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.5.1"],"introduced":["1.5.0"],"last_affected":[],"package":"sylius/grid-bundle","purl":"pkg:composer/sylius/grid-bundle","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.1.18"],"introduced":["1.0.0"],"last_affected":[],"package":"sylius/sylius","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.1.18"],"introduced":["1.0.0"],"last_affected":[],"package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.2.17"],"introduced":["1.2.0"],"last_affected":[],"package":"sylius/sylius","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.2.17"],"introduced":["1.2.0"],"last_affected":[],"package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.3.12"],"introduced":["1.3.0"],"last_affected":[],"package":"sylius/sylius","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.3.12"],"introduced":["1.3.0"],"last_affected":[],"package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.4.4"],"introduced":["1.4.0"],"last_affected":[],"package":"sylius/sylius","purl":null,"source":"GHSA-rc5r-697f-28x6"},{"ecosystem":"Packagist","fixed":["1.4.4"],"introduced":["1.4.0"],"last_affected":[],"package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"GHSA-rc5r-697f-28x6"}],"prev":{"headline":"File upload in n/a","id":"CVE-2019-12185"},"products":["n/a"],"published":"2019-12-31","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"An attacker with admin privileges can inject malicious scripts into grid fields, leading to cross-site scripting attacks in the Sylius e-commerce platform.","url":"https://insights.sbomify.com/CVE-2019-12186/"}