CVE-2020-21246 YiiCMS Cross Site Scripting vulnerability

Medium 5.4 Published Updated

A remote attacker can execute arbitrary code via a Cross-Site Scripting vulnerability in the news function of YiiCMS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-21246?

CVE-2020-21246 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Jun 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Cross Site Scripting vulnerability in YiiCMS v.1.0 allows a remote attacker to execute arbitrary code via the news function.

Weakness: CWE-79

Which versions are affected by CVE-2020-21246?

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

PackageAffectedFixed in
sheng/yiicms PackagistAll versions1.2.1
sheng/yiicms PackagistAll versions1.2.1

Products include Yiicms Project Yiicms.

How do I fix CVE-2020-21246?

Upgrade sheng/yiicms to 1.2.1 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-2020-21246 being exploited?

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

Sources

Also known as GHSA-gqr4-cvf4-3957.

Is CVE-2020-21246 in your software?

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

Check your SBOMs for free