Loading HuntDB...

GHSA-7528-7jg5-6g62

GitHub Security Advisory

Cross-site Scripting Vulnerability in CodeIgniter4

✓ GitHub Reviewed MODERATE Has CVE

Advisory Details

### 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)

Affected Packages

Packagist codeigniter4/framework
Affected versions: 0 (fixed in 4.1.8)

Related CVEs

Key Information

GHSA ID
GHSA-7528-7jg5-6g62
Published
January 27, 2022 3:09 PM
Last Modified
January 31, 2022 9:46 PM
CVSS Score
5.0 /10
Primary Ecosystem
Packagist
Primary Package
codeigniter4/framework
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 19, 2025 6:29 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.