{"id":"CVE-2022-24899","aliases":["EUVD-2022-4528","GHSA-m8x6-6r63-qvj2"],"status":"published","title":"Cross site scripting via canonical tag","description":"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.","severity":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.04478,"percentile":0.91529,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2022-05-05T23:45:13Z","modified":"2026-10-28T02:30:51Z","exploits":[{"source":"nuclei","id":"CVE-2022-24899","title":"Contao \u003c4.13.3 - Cross-Site Scripting","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24899.yaml"}],"fixes":[{"ecosystem":"Packagist","package":"contao/core-bundle","fixed_in":["4.13.3"],"sources":["ghsa","osv"]},{"ecosystem":"Packagist","package":"contao/contao","fixed_in":["4.13.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"contao/core-bundle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.3"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"contao/contao","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.3"}]}]},{"source":"osv","ecosystem":"Packagist","package":"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"]},{"source":"osv","ecosystem":"Packagist","package":"contao/contao","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.3"}]}],"versions":["4.13.0","4.13.1","4.13.2"]}],"products":[{"vendor":"contao","product":"contao"}],"references":[{"url":"https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url.html","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24899","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2022-24899.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2022-24899.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-m8x6-6r63-qvj2"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24899.json","tags":["advisory"]},{"url":"https://github.com/contao/contao","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-24899","title":"Cross site scripting via canonical tag","description":"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.","status":"published","published":"2022-05-05T23:45:13Z","modified":"2025-04-23T18:29:58.265Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:34.940806Z"}],"euvd":[{"id":"EUVD-2022-4528","description":"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.","status":"published","published":"2022-05-05T23:45:13Z","modified":"2025-04-23T18:29:58Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"updated_at":"2026-11-02T20:52:08.401317Z"}],"ghsa":[{"id":"GHSA-m8x6-6r63-qvj2","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).","status":"published","published":"2022-05-20T19:54:56Z","modified":"2024-04-22T18:41:38Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:44.335614Z"}],"nvd":[{"id":"CVE-2022-24899","description":"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.","status":"published","published":"2022-05-06T00:15:07.757Z","modified":"2026-06-17T04:32:45.63Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:19.51203Z"}],"osv":[{"id":"CVE-2022-24899","title":"Cross site scripting via canonical tag","description":"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.","status":"published","published":"2022-05-05T23:45:13Z","modified":"2026-10-28T02:30:51.569794306Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:24.428403Z"},{"id":"GHSA-m8x6-6r63-qvj2","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).","status":"published","published":"2022-05-20T19:54:56Z","modified":"2025-04-17T13:20:00.766389Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:51.463834Z"}]}}
