CVE-2018-20418 Craft CMS Cross-site Scripting (XSS) Vulnerability

Medium 4.8 Published Updated

An attacker can execute arbitrary scripts in the admin console by saving a malicious entry title in Craft CMS.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2018-20418?

CVE-2018-20418 is a medium-severity cross-site scripting vulnerability in Craftcms Craft Cms, published on 24 Dec 2018. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

index.php?p=admin/actions/entries/save-entry in Craft CMS 3.0.25 allows XSS by saving a new title from the console tab.

Weakness: CWE-79

Which versions are affected by CVE-2018-20418?

2 open source packages ship an affected version, including craftcms/cms. It affects 1 product.

PackageAffectedFixed in
craftcms/cms PackagistAll versions to 3.0.25None
craftcms/cms PackagistAll versions to 3.0.25None

Products include Craftcms Craft Cms.

How do I fix CVE-2018-20418?

No fix has been published for CVE-2018-20418 yet. Limit exposure of the affected software until one is available.

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-2018-20418 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Craftcms Craft Cms vulnerabilities

Sources

Also known as GHSA-72pf-cvwq-vgqg.

Is CVE-2018-20418 in your software?

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

Check your SBOMs for free