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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*

History

21 Nov 2024, 06:45

Type Values Removed Values Added
CVSS v2 : 4.3
v3 : 6.1
v2 : 4.3
v3 : 5.4
References () https://codeigniter4.github.io/userguide/incoming/routing.html#use-defined-routes-only - Mitigation, Vendor Advisory () https://codeigniter4.github.io/userguide/incoming/routing.html#use-defined-routes-only - Mitigation, Vendor Advisory
References () https://github.com/codeigniter4/CodeIgniter4/commit/70d881cf5322b7c32e69516aebd2273ac6a1e8dd - Patch, Third Party Advisory () https://github.com/codeigniter4/CodeIgniter4/commit/70d881cf5322b7c32e69516aebd2273ac6a1e8dd - Patch, Third Party Advisory
References () https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7528-7jg5-6g62 - Mitigation, Third Party Advisory () https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-7528-7jg5-6g62 - Mitigation, Third Party Advisory

Information

Published : 2022-01-24 20:15

Updated : 2024-11-21 06:45


NVD link : CVE-2022-21715

Mitre link : CVE-2022-21715

CVE.ORG link : CVE-2022-21715


JSON object : View

Products Affected

codeigniter

  • codeigniter
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')