{"id":"CVE-2023-36806","aliases":["CVE-2023-36806","GHSA-4gpr-p634-922x"],"related":[],"kind":"vulnerability","state":"published","title":"Contao cross site scripting vulnerability via input unit widget","summary":"Contao is an open source content management system. Starting in version 4.0.0 and prior to versions 4.9.42, 4.13.28, and 5.1.10, it is possible for untrusted backend users to inject malicious code into headline fields in the back end, which will be executed both in the element preview (back end) and on the website (front end). Installations are only affected if there are untrusted back end users who have the rights to modify headline fields, or other fields using the input unit widget. Contao 4.9.42, 4.13.28, and 5.1.10 have a patch for this issue. As a workaround, disable the login for all untrusted back end users.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Contao is an open source content management system. Starting in version 4.0.0 and prior to versions 4.9.42, 4.13.28, and 5.1.10, it is possible for untrusted backend users to inject malicious code into headline fields in the back end, which will be executed both in the element preview (back end) and on the website (front end). Installations are only affected if there are untrusted back end users who have the rights to modify headline fields, or other fields using the input unit widget. Contao 4.9.42, 4.13.28, and 5.1.10 have a patch for this issue. As a workaround, disable the login for all untrusted back end users.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAuthenticated users can inject malicious code in widgets with units, which is then executed both in the element preview (back end) and on the website (front end).\n\n### Patches\n\nUpdate to Contao 4.9.42, 4.13.28 or 5.1.10.\n\n### Workarounds\n\nDisable login for all untrusted back end users.\n\n### References\n\nhttps://contao.org/en/security-advisories/cross-site-scripting-in-widgets-with-units\n\n### For more information\n\nIf you have any questions or comments about this advisory, open an issue in [contao/contao](https://github.com/contao/contao/issues/new/choose).\n\n### Credits\n\nThanks to Christian Pöschl and Fabian Brenner from usd AG for reporting this vulnerability.","format":"markdown","source":"ghsa"}],"published":"2023-07-25T17:19:10.000Z","modified":"2026-09-10T03:49:42.581Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L","score":6.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 4.0.0, < 4.9.42","status":"affected"},{"version":">= 4.10.0, < 4.13.28","status":"affected"},{"version":">= 5.0.0, < 5.1.10","status":"affected"}],"vendor":"contao","product":"contao","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"4.0.0","status":"affected"},{"type":"custom","introduced":"0","fixed":"4.9.42","status":"affected"},{"type":"custom","introduced":"0","lastAffected":"4.10.0","status":"affected"},{"type":"custom","introduced":"0","fixed":"4.13.28","status":"affected"},{"type":"custom","introduced":"0","lastAffected":"5.0.0","status":"affected"},{"type":"custom","introduced":"0","fixed":"5.1.10","status":"affected"}],"vendor":"contao","product":"contao","cpe":"cpe:2.3:a:contao:contao:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.9.42"}],"ecosystem":"Packagist","package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.10.0","status":"affected","fixed":"4.13.28"}],"ecosystem":"Packagist","package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.1.10"}],"ecosystem":"Packagist","package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.9.42"},{"status":"affected","introduced":"4.10.0","fixed":"4.13.28"},{"status":"affected","introduced":"5.0.0","fixed":"5.1.10"}],"vendor":"contao","product":"contao","cpe":"cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/contao/contao/security/advisories/GHSA-4gpr-p634-922x","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/contao/contao/commit/5c9aff32cfc1f7dc452a045862ac2f86a6b9b4b4","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/contao/contao/commit/c98585d36baa25fda69c062421e7e7eadc53c82b","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/contao/contao/commit/ccb64c777eb0f9c0e6490c9135d80e915d37cd32","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://herolab.usd.de/security-advisories/usd-2023-0020/","tags":["exploit","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36806","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/contao/contao","tags":["package"],"sources":["ghsa"]},{"url":"https://herolab.usd.de/security-advisories/usd-2023-0020","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-10-23T18:55:31.237Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-36806","url":"https://www.cve.org/CVERecord?id=CVE-2023-36806","licence":"CVE Terms of Use","modified":"2025-02-13T16:56:24.200Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4gpr-p634-922x","url":"https://github.com/advisories/GHSA-4gpr-p634-922x","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:42.581Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-36806","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36806","licence":"Public domain","modified":"2026-06-17T06:07:06.920Z"}],"updatedAt":"2026-11-25T22:58:26.492Z","epss":{"score":0.00637,"percentile":0.51859,"date":"2026-12-01T12:00:22.000Z"}}