CodeIgniter4 through 4.7.6 contains a cross-site scripting vulnerability in parse_form_attributes() and related form helpers that escape only the value key.
- CVSS
- 6.1Medium
- Chance of exploitation (EPSS)
- 0.63%
- Published
- Dec 2, 2026
- In the news
- Not yet
What to do
A moderate cross-site scripting flaw in Codeigniter4 that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Codeigniter4
- 4.0.0 to through 4.7.6
Description
CodeIgniter4 through 4.7.6 contains a cross-site scripting vulnerability in parse_form_attributes() and related form helpers that escape only the value key. Attackers who influence values passed to form_input(), form_label(), form_dropdown() or form_datalist() can inject a double quote and event handlers to execute script in victims' browsers.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-142138 published (CVSS 6.1) (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Dec 2, 2026
- CVECVE-2026-142138 published (CVSS 6.1)CVE Program · 15:17 UTC
References 7
- github.com /codeigniter4/CodeIgniter4
- github.com /codeigniter4/CodeIgniter4/blob/v4.7.6/system/Helpers/form_helper.php#L774-L803
- github.com /codeigniter4/CodeIgniter4/commit/a98e673e001c5ac9d7ef907eca063a18df07863f
- github.com /codeigniter4/CodeIgniter4/issues/10812
- github.com /codeigniter4/CodeIgniter4/pull/10818
- www.vulncheck.com /advisories/codeigniter4-through-4.7.6-xss-via-unescaped-form-helper-attribute-values
- github.com /codeigniter4/CodeIgniter4/issues/10812