{"id":"GHSA-m8x6-6r63-qvj2","summary":"Cross site scripting via canonical tag in Contao","details":"### 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).","aliases":["CVE-2022-24899"],"modified":"2025-04-17T13:29:57.339093Z","published":"2022-05-20T19:54:56Z","database_specific":{"nvd_published_at":"2022-05-06T00:15:00Z","cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-05-20T19:54:56Z"},"references":[{"type":"WEB","url":"https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24899"},{"type":"WEB","url":"https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c"},{"type":"WEB","url":"https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url.html"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2022-24899.yaml"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2022-24899.yaml"},{"type":"PACKAGE","url":"https://github.com/contao/contao"}],"affected":[{"package":{"name":"contao/core-bundle","ecosystem":"Packagist","purl":"pkg:composer/contao/core-bundle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.3"}]}],"versions":["4.13.0","4.13.1","4.13.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-m8x6-6r63-qvj2/GHSA-m8x6-6r63-qvj2.json"}},{"package":{"name":"contao/contao","ecosystem":"Packagist","purl":"pkg:composer/contao/contao"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.3"}]}],"versions":["4.13.0","4.13.1","4.13.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-m8x6-6r63-qvj2/GHSA-m8x6-6r63-qvj2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"}]}