CVE-2020-25768 Contao Insert tag injection in forms

Medium 5.3 Published Updated

Attackers can inject malicious insert tags in front-end forms, leading to script execution or data exposure when pages are rendered.

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

What is CVE-2020-25768?

CVE-2020-25768 is a medium-severity cross-site scripting vulnerability in n/a, published on 7 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Contao before 4.4.52, 4.9.x before 4.9.6, and 4.10.x before 4.10.1 have Improper Input Validation. It is possible to inject insert tags in front end forms which will be replaced when the page is rendered.

Weakness: CWE-74, CWE-20

Which versions are affected by CVE-2020-25768?

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

PackageAffectedFixed in
contao/contao PackagistFrom 4.0.04.4.52
contao/contao PackagistFrom 4.0.04.4.52
contao/contao PackagistFrom 4.10.04.10.1
contao/contao PackagistFrom 4.10.04.10.1
contao/contao PackagistFrom 4.5.04.9.6
contao/contao PackagistFrom 4.5.04.9.6
6 more packages
contao/core-bundle PackagistFrom 4.0.04.4.52
contao/core-bundle PackagistFrom 4.0.04.4.52
contao/core-bundle PackagistFrom 4.10.04.10.1
contao/core-bundle PackagistFrom 4.10.04.10.1
contao/core-bundle PackagistFrom 4.5.04.9.6
contao/core-bundle PackagistFrom 4.5.04.9.6

Products include Contao Contao.

How do I fix CVE-2020-25768?

Upgrade contao/contao to a fixed version for your release line: 4.4.52, 4.10.1 or 4.9.6.

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-2020-25768 being exploited?

There is no known exploitation of CVE-2020-25768 in the wild and no public exploit code.

Sources

Also known as GHSA-f7wm-x4gw-6m23.

Is CVE-2020-25768 in your software?

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

Check your SBOMs for free