Yii Cross-site Scripting Framework vulnerability
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | yiisoft/yii2 | >= 2.0.12, < 2.0.13 | 2.0.13 |
| Composer package | yiisoft/yii2-dev | >= 2.0.12, < 2.0.13 | 2.0.13 |
References
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- Composer
- Package
yiisoft/yii2, yiisoft/yii2-dev- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-4c64-w8fg-xcq2 - CC BY 4.0
Vulnerability history: yiisoft/yii2-dev
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 09.2021 03.2025
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 3
- Medium 3
Disclosures per year
- 2021: 2
- 2022: 4
- 2023: 0
- 2024: 0
- 2025: 1
- 2026: 0
-
Yii Cross-site Scripting Framework vulnerability this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.