XSS in Codeigniter
CVE-2022-21715
CodeIgniter4 is the 4.x branch of CodeIgniter, a PHP full-stack web framework. A cross-site scripting (XSS) vulnerability was found in `API\ResponseTrait` in Codeigniter4 prior to version 4.1.8. Attackers can do XSS attacks if a potential victim is using `API\ResponseTrait`. Version 4.1.8 contains a patch for this vulnerability. There are two potential workarounds available. Users may avoid using `API\ResponseTrait` or `ResourceController` Users may also disable Auto Route and use defined routes only.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.010 (61.4th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 61st percentile — 61.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.010 · newest: 0.010 · change: 0.000
Affected products
- Codeigniter
- Codeigniter4 — versions < 4.1.8
Weakness classification (CWE)
References
- github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7528-7jg5-6g62 (Third Party Advisory, Mitigation)
- github.com/codeigniter4/CodeIgniter4/commit/70d881cf5322b7c32e69516aebd2273ac6a… (Patch, Third Party Advisory)
- codeigniter4.github.io/userguide/incoming/routing.html (Mitigation, Vendor Advisory)
Frequently asked questions
- What is CVE-2022-21715?
- CVE-2022-21715 is a medium-severity vulnerability in Codeigniter, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2022-01-24.
- How severe is CVE-2022-21715?
- Medium severity. CVSS v3 base score is 5.4 out of 10.