logo

Database

Server side cross-site scripting In codeigniter4/framework

Description

Cross-site Scripting Vulnerability in CodeIgniter4

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:

    Do not use API\ResponseTrait nor ResourceController

    Disable Auto Route and Use Defined Routes Only

References

For more information

If you have any questions or comments about this advisory:

Mitigation

Update Impact

Minimal update. May introduce new vulnerabilities or breaking changes.

Ecosystem
Component
Affected version
Patched versions