GHSA-xwhj-pqcg-8rcr CakePHP vulnerable to Cross-site Scripting in some development error pages
Attackers can execute scripts via XSS in CakePHP development error pages, requiring developers to upgrade or disable debug mode.
- 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 GHSA-xwhj-pqcg-8rcr?
GHSA-xwhj-pqcg-8rcr is a cross-site scripting vulnerability in cakephp/cakephp, published on 20 Jan 2023. 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
missing route and duplicate named route error pages.Which versions are affected by GHSA-xwhj-pqcg-8rcr?
6 open source packages ship an affected version, including cakephp/cakephp.
| Package | Affected | Fixed in |
|---|---|---|
cakephp/cakephp Packagist | From 3.4.0 | 3.4.14 |
cakephp/cakephp Packagist | From 3.4.0 | 3.4.14 |
cakephp/cakephp Packagist | From 3.5.0 | 3.5.17 |
cakephp/cakephp Packagist | From 3.5.0 | 3.5.17 |
cakephp/cakephp Packagist | From 3.6.0 | 3.6.4 |
cakephp/cakephp Packagist | From 3.6.0 | 3.6.4 |
How do I fix GHSA-xwhj-pqcg-8rcr?
Upgrade cakephp/cakephp to a fixed version for your release line: 3.4.14, 3.5.17 or 3.6.4.
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 GHSA-xwhj-pqcg-8rcr being exploited?
There is no known exploitation of GHSA-xwhj-pqcg-8rcr in the wild and no public exploit code.