{"id":"GHSA-m8x6-6r63-qvj2","aliases":["CVE-2022-24899"],"title":"Cross site scripting via canonical tag in Contao","description":"### 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).","severity":"high","score":7.2,"published":"2022-05-20T19:54:56.000Z","modified":"2025-04-17T13:20:00.766Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"contao/core-bundle","ranges":[{"events":[{"introduced":"4.13.0"},{"fixed":"4.13.3"}],"type":"ECOSYSTEM"}],"versions":["4.13.0","4.13.1","4.13.2"],"fixed":["4.13.3"]},{"ecosystem":"Packagist","name":"contao/contao","ranges":[{"events":[{"introduced":"4.13.0"},{"fixed":"4.13.3"}],"type":"ECOSYSTEM"}],"versions":["4.13.0","4.13.1","4.13.2"],"fixed":["4.13.3"]}],"references":["https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2","https://nvd.nist.gov/vuln/detail/CVE-2022-24899","https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c","https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url.html","https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2022-24899.yaml","https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2022-24899.yaml","https://github.com/contao/contao"],"sources":[{"name":"OSV","id":"GHSA-m8x6-6r63-qvj2","modified":"2025-04-17T13:20:00.766389Z","url":"https://osv.dev/vulnerability/GHSA-m8x6-6r63-qvj2"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2}]}