CVE-2025-32027 Yii does not prevent XSS in scenarios where fallback error renderer is used

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts via reflected XSS when the fallback error renderer is active in the Yii PHP framework.

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-2025-32027?

CVE-2025-32027 is a medium-severity cross-site scripting vulnerability in yiisoft yii, published on 10 Apr 2025. 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

Yii is an open source PHP web framework. Prior to 1.1.31, yiisoft/yii is vulnerable to Reflected XSS in specific scenarios where the fallback error renderer is used. Upgrade yiisoft/yii to version 1.1.31 or higher.

Weakness: CWE-80, CWE-79

Which versions are affected by CVE-2025-32027?

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

PackageAffectedFixed in
yiisoft/yii PackagistAll versions1.1.31
yiisoft/yii PackagistAll versions1.1.31

Products include Yiiframework Yii.

How do I fix CVE-2025-32027?

Upgrade yiisoft/yii to 1.1.31 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-2025-32027 being exploited?

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

Sources

Also known as GHSA-7r2v-8wxr-3ch5.

Is CVE-2025-32027 in your software?

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

Check your SBOMs for free