GHSA-7528-7jg5-6g62
Cross-site Scripting Vulnerability in CodeIgniter4
Quick fix
GHSA-7528-7jg5-6g62 — codeigniter4/framework: upgrade to the fixed version with the command below.
composer require codeigniter4/framework:^4.1.8Details
### Impact Cross-Site Scripting (XSS) vulnerability was found in `API\ResponseTrait` in Codeigniter4. Attackers can do XSS attacks if you are using `API\ResponseTrait`.
### Patches Upgrade to v4.1.8 or later.
### Workarounds Do one of the following: 1. Do not use `API\ResponseTrait` nor `ResourceController` 2. Disable Auto Route and [Use Defined Routes Only](https://codeigniter4.github.io/userguide/incoming/routing.html#use-defined-routes-only)
### References - [Cross Site Scripting (XSS) Software Attack | OWASP Foundation](https://owasp.org/www-community/attacks/xss/)
### For more information If you have any questions or comments about this advisory: * Open an issue in [codeigniter4/CodeIgniter4](https://github.com/codeigniter4/CodeIgniter4/issues) * Email us at [SECURITY.md](https://github.com/codeigniter4/CodeIgniter4/blob/develop/SECURITY.md)
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 4.1.8composer require codeigniter4/framework:^4.1.8References
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7528-7jg5-6g62[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-21715[ADVISORY]
- https://github.com/codeigniter4/CodeIgniter4/commit/70d881cf5322b7c32e69516aebd2273ac6a1e8dd[WEB]
- https://codeigniter4.github.io/userguide/incoming/routing.html#use-defined-routes-only[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-21715.yaml[WEB]
- https://github.com/codeigniter4/framework[PACKAGE]