CVE-2022-21715
Last modified
CVE-2022-21715 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 1.00% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Codeigniter | Codeigniter | >= 4.0.0, < 4.1.8 |
References
- https://codeigniter4.github.io/userguide/incoming/routing.html#use-defined-routes-onlyMitigation, Vendor Advisory
- https://github.com/codeigniter4/CodeIgniter4/commit/70d881cf5322b7c32e69516aebd2273ac6a1e8ddPatch, Third Party Advisory
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7528-7jg5-6g62Mitigation, Third Party Advisory
- https://codeigniter4.github.io/userguide/incoming/routing.html#use-defined-routes-onlyMitigation, Vendor Advisory
- https://github.com/codeigniter4/CodeIgniter4/commit/70d881cf5322b7c32e69516aebd2273ac6a1e8ddPatch, Third Party Advisory
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7528-7jg5-6g62Mitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-21715?
How severe is CVE-2022-21715?
How do I fix CVE-2022-21715?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-21708graphql-go is a GraphQL server with a focus on ease of use. …6.5
- CVE-2022-2171The Progressive License WordPress plugin through 1.1.0 is la…5.4
- CVE-2022-21710ShortDescription is a MediaWiki extension that provides loca…6.1
- CVE-2022-21711elfspirit is an ELF static analysis and injection framework …7.1
- CVE-2022-21712twisted is an event-driven networking engine written in Pyth…7.5
- CVE-2022-21713Grafana is an open-source platform for monitoring and observ…4.3
- CVE-2022-21716Twisted is an event-based framework for internet application…7.5
- CVE-2022-21718Electron is a framework for writing cross-platform desktop a…5
- CVE-2022-21719GLPI is a free asset and IT management software package. All…6.1
- CVE-2022-2172The LinkWorth WordPress plugin before 3.3.4 does not impleme…4.3
- CVE-2022-21720GLPI is a free asset and IT management software package. Pri…4.9
- CVE-2022-21721Next.js is a React framework. Starting with version 12.0.0 a…7.5
Are you affected by CVE-2022-21715?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
