CVE-2017-7271 · mitre
CVE-2017-7271
Reflected Cross-site scripting (XSS) vulnerability in Yii Framework before 2.0.11, when development mode is used, allows remote attackers to inject arbitrary web script or HTML via crafted request data that is mishandled on the debug-mode exception screen.
Published 2017-03-27, last changed 2026-06-17. Weakness: CWE-79.
How to fix
Upgrade to a fixed version: yiisoft/yii2 2.0.11 (Packagist). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in yiisoft/yii2 by 97171a0db7, pull request #13401. Functions changed by the fix: renderRequest. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2017-03-27 | Published |
| 2022-05-17 | Package advisory GHSA-4xh9-5vh8-3p58 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.04% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-4xh9-5vh8-3p58 | yiisoft/yii2 (Packagist) | 2.0.11 |
Also known as: GHSA-4xh9-5vh8-3p58
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-39850 | 2026-05-20 | 7.4 | Yii 2: Local file inclusion via view parameter name collision |
| CVE-2024-58136 KEV | 2025-04-10 | 9.8 | same package: yiisoft/yii2 (Packagist) |
| CVE-2024-4990 | 2025-03-20 | 9.1 | Unsafe Reflection in base Component class in yiisoft/yii2 |
| CVE-2024-32877 | 2024-05-30 | 4.7 | Reflected Cross-site Scripting in yiisoft/yii2 Debug mode |
| CVE-2015-5467 | 2023-09-21 | 9.8 | same package: yiisoft/yii2 (Packagist) |
| CVE-2023-26750 | 2023-04-04 | 9.8 | same package: yiisoft/yii2 (Packagist) |
| CVE-2020-15148 | 2020-09-15 | 10 | Unsafe deserialization in Yii 2 |
| CVE-2018-20745 | 2019-01-28 | 5.9 | same package: yiisoft/yii2 (Packagist) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-7271, or call /api/v1/vulnerabilities/CVE-2017-7271. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.