{"id":"CVE-2022-24899","aliases":["CVE-2022-24899","GHSA-m8x6-6r63-qvj2"],"related":[],"kind":"vulnerability","state":"published","title":"Cross site scripting via canonical tag","summary":"Contao is a powerful open source CMS that allows you to create professional websites and scalable web applications. In versions of Contao prior to 4.13.3 it is possible to inject code into the canonical tag. As a workaround users may disable canonical tags in the root page settings.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Contao is a powerful open source CMS that allows you to create professional websites and scalable web applications. In versions of Contao prior to 4.13.3 it is possible to inject code into the canonical tag. As a workaround users may disable canonical tags in the root page settings.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nUntrusted users can inject malicious code into the canonical tag, which is then executed on the web page (front end).\n\n### Patches\n\nUpdate to Contao 4.13.3.\n\n### Workarounds\n\nDisable canonical tags in the root page settings.\n\n### References\n\nhttps://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url\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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Contao es un potente CMS de código abierto que permite crear sitios web profesionales y aplicaciones web escalables. En las versiones de Contao anteriores a 4.13.3 es posible inyectar código en la etiqueta canónica. Como medida de mitigación, los usuarios pueden deshabilitar las etiquetas canónicas en la configuración de la página root","source":"nvd"}],"published":"2022-05-05T23:45:13.000Z","modified":"2026-06-17T04:32:45.630Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 4.13.3","status":"affected"}],"vendor":"contao","product":"contao","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.13.0","status":"affected","fixed":"4.13.3"}],"ecosystem":"Packagist","package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.13.0","status":"affected","fixed":"4.13.3"}],"ecosystem":"Packagist","package":"contao/contao","purl":"pkg:composer/contao/contao","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.13.0","lastAffected":"4.13.2"}],"vendor":"contao","product":"contao","cpe":"cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url.html","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24899","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2022-24899.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2022-24899.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/contao/contao","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-23T15:55:05.099Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24899","url":"https://www.cve.org/CVERecord?id=CVE-2022-24899","licence":"CVE Terms of Use","modified":"2025-04-23T18:29:58.265Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m8x6-6r63-qvj2","url":"https://github.com/advisories/GHSA-m8x6-6r63-qvj2","licence":"CC-BY-4.0","modified":"2025-04-17T13:20:00.766Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24899","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24899","licence":"Public domain","modified":"2026-06-17T04:32:45.630Z"}],"updatedAt":"2026-11-25T22:58:11.486Z","epss":{"score":0.04478,"percentile":0.9168,"date":"2026-12-02T12:00:21.000Z"}}