CVE-2017-11516 Yii Cross-site Scripting Framework vulnerability

Medium 6.1 Published Updated

Cross-site scripting in Yii Framework error handler allows code execution when debug mode is enabled.

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

What is CVE-2017-11516?

CVE-2017-11516 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 Jul 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An XSS vulnerability exists in framework/views/errorHandler/exception.php in Yii Framework 2.0.12 affecting the exception screen when debug mode is enabled, because $exception->errorInfo is mishandled.

Weakness: CWE-79

Which versions are affected by CVE-2017-11516?

4 open source packages ship an affected version, including yiisoft/yii2 and yiisoft/yii2-dev. It affects 1 product.

PackageAffectedFixed in
yiisoft/yii2 PackagistFrom 2.0.122.0.13
yiisoft/yii2 PackagistFrom 2.0.122.0.13
yiisoft/yii2-dev PackagistFrom 2.0.122.0.13
yiisoft/yii2-dev PackagistFrom 2.0.122.0.13

Products include Yiiframework Yii.

How do I fix CVE-2017-11516?

Upgrade yiisoft/yii2 to 2.0.13 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-2017-11516 being exploited?

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

Sources

Also known as GHSA-4c64-w8fg-xcq2.

Is CVE-2017-11516 in your software?

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

Check your SBOMs for free