CVE-2026-142138: CodeIgniter4 · Cross-site Scripting
Affects CodeIgniter4Source CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 2 Dec 2026, 14:46 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 6.1 |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| codeigniter4CodeIgniter4 | Affected
| Fixed in– |
PackagistCodeIgniter4pkg:composer/CodeIgniter4Other threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, avoid passing untrusted input to the affected form helper functions or implement additional input sanitization and output encoding controls.
Description
CodeIgniter4 versions 4.0.0 through 4.7.6 contain a cross-site scripting (XSS) vulnerability in the parse_form_attributes() function and related form helpers. The vulnerability arises because only the value key is escaped, allowing attackers who control inputs to inject double quotes and event handlers. This can lead to script execution in users' browsers when using form_input(), form_label(), form_dropdown(), or form_datalist() helpers.
References
- github.com/codeigniter4/CodeIgniter4/issues/10812 (opens in a new tab)
- github.com/codeigniter4/CodeIgniter4/pull/10818 (opens in a new tab)
- github.com/codeigniter4/CodeIgniter4/commit/a98e673e001c5ac9d7ef907eca063a18df07863f (opens in a new tab)
- github.com/codeigniter4/CodeIgniter4/blob/v4.7.6/system/Helpers/form_helper.php (opens in a new tab)
- github.com/codeigniter4/CodeIgniter4 (opens in a new tab)
- vulncheck.com/advisories/codeigniter4-through-4.7.6-xss-via-unescaped-form-helper-attribute-values (opens in a new tab)