Skip to main content
VulnerabilityPublished

CVE-2026-142138: CodeIgniter4 · Cross-site Scripting

Affects CodeIgniter4Source CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.3 Medium.

Data as of 2 Dec 2026, 14:46 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.05.3
CNA (VulnCheck)CVSS 3.16.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
codeigniter4CodeIgniter4Affected
  • >=4.0.0 <=4.7.6
Fixed in–
PackagistCodeIgniter4pkg:composer/CodeIgniter4Other threatsAffected
  • >=4.0.0 <=4.7.6
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

Community reviews

Loading reviews…