CVE-2026-142138: CodeIgniter4 through 4.7.6 XSS via Unescaped Form Helper Attribute Values

Published Dec 2, 2026
·
Updated

CodeIgniter4 through 4.7.6 contains a cross-site scripting vulnerability in parseformattributes() and related form helpers that escape only the value key. Attackers who influence values passed to forminput(), formlabel(), formdropdown() or formdatalist() can inject a double quote and event handlers to execute script in victims' browsers.

Affected Software

1 affected component
CodeIgniter CodeIgniter4<=4.7.6

Event History

Dec 2, 2026
CVE Published
via MITRE·02:21 PM
Data Sourced
via MITRE·02:21 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions are required for exploitation?

An attacker must be able to influence attribute values passed to affected form helpers, including form_input(), form_label(), form_dropdown(), or form_datalist(). Exploitation also requires a victim to load the page containing the crafted form output.

2

Are all CodeIgniter4 applications affected by default?

The issue affects CodeIgniter4 through version 4.7.6, but exploitation depends on whether an application passes attacker-influenced data into attribute values for the affected form helpers. Applications that do not use those helpers with untrusted attribute values are not exposed through this vector.

3

How can developers identify vulnerable code?

Review uses of form_input(), form_label(), form_dropdown(), and form_datalist() for attribute values derived from request data or other attacker-controlled sources. Inputs containing a double quote followed by an event-handler attribute are relevant indicators of the vulnerable output path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203