CodeIgniter4 through 4.7.6 contains a cross-site scripting vulnerability in parse_form_attributes() and related form
Source GCVE Database
Not known to be exploited · CVSS 5.3 Medium.
Data as of 2 Dec 2026, 16:18 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 using affected form helper functions with untrusted input or implement additional input sanitization and output encoding to prevent injection of malicious attributes.
Description
CodeIgniter4 versions through 4.7.6 have a cross-site scripting (XSS) vulnerability in the parse_form_attributes() function and related form helpers. These helpers escape only the value key, allowing attackers who can influence inputs to inject double quotes and event handlers, leading to script execution in users' browsers. This vulnerability affects functions such as form_input(), form_label(), form_dropdown(), and form_datalist().
References
- nvd.nist.gov/vuln/detail/CVE-2026-142138 (opens in a new tab)
- 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 (opens in a new tab)
- github.com/codeigniter4/CodeIgniter4/blob/v4.7.6/system/Helpers/form_helper.php (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)