CVE-2026-142138 — CodeIgniter4
One of 7 CodeIgniter4 vulnerabilities published together by NVD: our article covers all of them.
WebVulnerabilitiesSummary
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.
Severity breakdown
Medium · 5.3
An attacker without an account can exploit this over the network if a user views or visits something.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- none
- Impact on other systems
- low on confidentiality and integrity, none on availability
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| CodeIgniter4 | ≥ 4.0.0, ≤ 4.7.6 | — |
References by type
Patches and fixed releases
- github.com/codeigniter4/CodeIgniter4/commit/a98e673e001c5ac9d7ef907eca0…
- github.com/codeigniter4/CodeIgniter4/pull/10818
Other references
Affected
- CodeIgniter4
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-142138?
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. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).
How severe is CVE-2026-142138?
CVE-2026-142138 has a CVSS 4.0 base score of 5.3 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network if a user views or visits something.
Is CVE-2026-142138 being exploited?
Not as far as is known: CVE-2026-142138 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-142138?
CodeIgniter4 ≥ 4.0.0, ≤ 4.7.6.
How do I fix CVE-2026-142138?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.