Intel

AIKIDO-2025-10467

codeigniter4/shield is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 16, 2025

65

Medium Risk

This Affects:

PHPcodeigniter4/shield
1.0.0 - 1.1.0
Fixed in 1.2.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to XSS via unescaped session variables due to improper output sanitization of HTML-injectable session parameters error and message, where the code directly injects session content without escaping. An attacker can exploit this vulnerability by crafting malicious payloads into these session variables, typically by manipulating error-triggering operations, such as failed logins, which are then rendered and executed in victims' browsers when they view the error page, enabling session hijacking or credential theft.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

codeigniter4/shield is vulnerable to Cross-site Scripting (XSS) in versions 1.0.0 - 1.1.0.

How to fix this

Upgrade the codeigniter4/shield library to the patch version.