CVE-2025-32027 Yii does not prevent XSS in scenarios where fallback error renderer is used
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.
Which versions are affected by CVE-2025-32027?
2 open source packages ship an affected version, including yiisoft/yii. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
yiisoft/yii Packagist | All versions | 1.1.31 |
yiisoft/yii Packagist | All versions | 1.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.
Other vulnerabilities in yiisoft yii
- CVE-2024-58136 Yiiframework Yii Improper Protection of Alternate Path
- CVE-2015-5467 Yii2 allows attackers to execute any local .php file via a relative path in the view parameter
- CVE-2023-26750 SQL injection in n/a
- CVE-2018-7269 Yii SQL injection vulnerability
- CVE-2018-8073 yii2-redis Potential Remote code execution
Sources
Also known as GHSA-7r2v-8wxr-3ch5.