Medium severity6.1NVD Advisory· Published Mar 27, 2017· Updated May 13, 2026
CVE-2017-7271
CVE-2017-7271
Description
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
yiisoft/yii2Packagist | < 2.0.11 | 2.0.11 |
Affected products
1Patches
197171a0db7cdFixes #13401: Fixed lack of escaping of request dump at exception screens
2 files changed · +2 −2
framework/CHANGELOG.md+1 −1 modified@@ -104,7 +104,7 @@ Yii Framework 2 Change Log - Enh: Added support for field `yii\console\controllers\BaseMigrateController::$migrationNamespaces` setup from CLI (schmunk42) - Bug #13287: Fixed translating "and" separator in `UniqueValidator` error message (jetexe) - Enh #11464: Populate foreign key names from schema (joaoppereira) - +- Bug #13401: Fixed lack of escaping of request dump at exception screens (samdark) 2.0.10 October 20, 2016 -----------------------
framework/web/ErrorHandler.php+1 −1 modified@@ -323,7 +323,7 @@ public function renderRequest() } } - return '<pre>' . rtrim($request, "\n") . '</pre>'; + return '<pre>' . $this->htmlEncode(rtrim($request, "\n")) . '</pre>'; } /**
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- www.yiiframework.com/news/123/yii-2-0-11-is-released/nvdRelease NotesVendor Advisory
- github.com/advisories/GHSA-4xh9-5vh8-3p58ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2017-7271ghsaADVISORY
- www.yiiframework.com/news/123/yii-2-0-11-is-releasedghsaWEB
- github.com/yiisoft/yii2/commit/97171a0db7cda0a49931ee0c3b998ef50bd06756nvdWEB
- github.com/yiisoft/yii2/pull/13401nvdWEB
- web.archive.org/web/20210125191138/http://www.securityfocus.com/bid/97167ghsaWEB
- www.securityfocus.com/bid/97167nvd
News mentions
0No linked articles in our index yet.