Advisory

GHSA-7528-7jg5-6g62

Also known as: BIT-codeigniter-2022-21715, CVE-2022-21715

Summary

Cross-site Scripting Vulnerability in CodeIgniter4

Details

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:

  1. Do not use API\ResponseTrait nor ResourceController
  2. Disable Auto Route and Use Defined Routes Only

References

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-01-27 15:09 UTC
Modified
2024-02-16 08:05 UTC

Affected packages and fixes

codeigniter4/framework

Packagist · All systems

Affected

  • introduced 0, fixed 4.1.8 (ecosystem)

Fixed versions

4.1.8

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences