VYPR
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.

PackageAffected versionsPatched versions
yiisoft/yii2Packagist
< 2.0.112.0.11

Affected products

1

Patches

1
97171a0db7cd

Fixes #13401: Fixed lack of escaping of request dump at exception screens

https://github.com/yiisoft/yii2Alexander MakarovJan 17, 2017via ghsa
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

News mentions

0

No linked articles in our index yet.