CVE-2022-24899 Cross site scripting via canonical tag

High 7.2 Published Updated

Attackers can inject malicious scripts into the canonical tag of Contao CMS websites, potentially executing code in victim browsers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24899?

CVE-2022-24899 is a high-severity cross-site scripting vulnerability in contao, published on 5 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-79

Which versions are affected by CVE-2022-24899?

4 open source packages ship an affected version, including contao/contao and contao/core-bundle. It affects 1 product.

PackageAffectedFixed in
contao/contao PackagistFrom 4.13.04.13.3
contao/contao PackagistFrom 4.13.04.13.3
contao/core-bundle PackagistFrom 4.13.04.13.3
contao/core-bundle PackagistFrom 4.13.04.13.3

Products include Contao Contao.

How do I fix CVE-2022-24899?

Upgrade contao/contao to 4.13.3 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-24899 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24899 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-m8x6-6r63-qvj2.

Is CVE-2022-24899 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free