CVE-2022-21715

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductCodeigniter
PublishedJan 24, 2022
First seenJan 24, 2022

How to fix

Update
  • codeigniter codeigniter4.1.8 or later
  • codeigniter4/framework4.1.8 or later

Affected products

ProductAffected versionsFixed in
codeigniter codeigniter4.0.0 ≤ v < 4.1.84.1.8
codeigniter4/frameworkPackagistv < 4.1.84.1.8

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2022-21715 · Codeigniter · Dark Radar