Skip to main content

CodeIgniter4 CVE-2026-142138

| EUVDEUVD-2026-141419 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-12-02 VulnCheck GHSA-ggmm-h89f-fq3v
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted input with quote and handler
  2. Delivery
    Application passes value to form helper attribute
  3. Exploit
    Helper emits unescaped attribute, breaks markup
  4. Execution
    Victim browser renders injected handler
  5. Impact
    Attacker script executes in victim session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the application to pass attacker-influenced data into a CodeIgniter4 form helper - form_input(), form_label(), form_dropdown() (optgroup labels), or form_datalist() - specifically into associative-array attribute or option keys OTHER than 'value' (e.g. class, placeholder, id, label, or option text), which were not escaped through 4.7.6. The injected value must contain a double quote to break out of the attribute, followed by an event handler, and a victim must load the rendered page (UI:P). Limiting factors: only non-'value' keys are affected ('value' was already escaped); applications that never route untrusted input through these helper attributes are not exposed; and victim interaction/page rendering is required. The server/framework host itself is not compromised - impact is limited to the victim's browser context.

Impact

This is a medium-severity (CVSS 4.0 base 5.3) reflected/stored cross-site scripting weakness whose real-world risk is heavily conditional on how applications use the affected CodeIgniter4 form helpers. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) indicates network-reachable, low-complexity exploitation with no attacker privileges but requiring victim interaction, and impact is confined to the subsequent system (victim browser) as SC:L/SI:L with no impact to the server itself (VC:N/VI:N/VA:N) - consistent with CWE-79. There is no CISA KEV listing and no EPSS score supplied, so there is no signal of active or widespread exploitation; the vuln.today Decision label is 'this_month' (moderate priority), not act_now or emergency. No input reference is flagged as confirmed working exploit code, so no public exploit is confirmed; however, the vendor fix commit includes test cases containing concrete breakout payloads (e.g. class='form-control" onfocus="alert(1)"'), which publicly demonstrate the injection vectors. The key limiting factor - not captured by the raw CVSS score - is that exploitation requires the application developer to pass attacker-influenced data into attribute keys other than 'value' (e.g. class, placeholder, label, id, optgroup labels, datalist options); applications that never route untrusted input through these helper attributes are not exposed. Overall this is a genuine but developer-dependent XSS: a real priority for CodeIgniter4 apps that render user-controlled data via these helpers, but a lower practical risk than the network/unauthenticated metrics alone suggest.

Exploit ScenarioDerived

An application uses a CodeIgniter4 form helper such as form_input() or form_label() and passes user-controllable data (e.g. a profile field or search term) into an attribute like 'class' or 'placeholder' as an associative array. An attacker submits a value containing a double quote plus an event handler (e.g. form-control" onfocus="alert(document.cookie)), which breaks out of the unescaped attribute and executes script when a victim's browser renders the page. No confirmed public exploit tool is identified, but the vendor's fix includes working breakout payloads in its test suite, and exploitation requires the victim to load the affected page (UI:P).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Cross-site scripting in the CodeIgniter4 form helpers - parse_form_attributes(), form_input(), form_label(), form_dropdown() optgroup labels and form_datalist() - affects releases 4.0.0 through 4.7.6 and lets an attacker who can influence the associative-array attribute or option values passed to those helpers inject a double quote plus event handlers that execute script in a victim's browser. The helpers escaped only the 'value' key, so attributes such as class, placeholder, id, label text, datalist names/options and optgroup labels rendered unescaped; unauthenticated remote attackers can exploit this, but the victim must load the rendered page (UI:P) and the impact is confined to the victim's browser session rather than the server. No public exploit code and no confirmed active exploitation were identified at time of analysis, and an upstream fix is available (PR #10818 / commit a98e673) destined for the 4.7.7 changelog, with the release itself not independently confirmed as shipped.

RemediationAI

Vendor-released patch status: an upstream fix is available as PR #10818 (commit a98e673e001c5ac9d7ef907eca063a18df07863f) against system/Helpers/form_helper.php and is documented for the 4.7.7 changelog, but a tagged 4.7.7 release was not independently confirmed at time of analysis, so upgrading to the first release that includes commit a98e673 (expected 4.7.7) or cherry-picking that commit is the complete fix. Applications pinned to 4.0.0-4.7.6 should treat any upgrade as urgent only in proportion to their exposure (vuln.today priority: this_month). Until patched, review every call site that passes request-derived data into the associative-array attribute keys of form_input(), form_label(), form_dropdown() and form_datalist() (class, placeholder, id, optgroup label, datalist name/options) - 'value' was already escaped - and stop routing untrusted input through those keys, or pre-escape those specific values with esc($val, 'attr') and constrain attribute names to a fixed allowlist before calling the helpers. Note the trade-off: pre-escaping at call sites duplicates logic that the upstream patch centralizes, is easy to miss in less-travelled views, and must be removed once the framework is upgraded to avoid double-encoding. A Content-Security-Policy that disallows inline event handlers reduces the impact of a successful injection but does not fix the underlying unescaped output, and applications that never pass untrusted data into these helper attributes require no immediate change beyond scheduling the upgrade.

Affected VersionsENISA

CodeIgniter4 4.0.0 ≤4.7.6

Affected Packages

euvd codeigniter4 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CodeIgniter4 is a PHP web framework whose system/Helpers/form_helper.php renders HTML form elements from PHP arrays. The flaw is CWE-79 (improper neutralization of input during web page generation): parse_form_attributes() applied esc() conditionally to the 'value' key only, and the sibling helpers form_label(), form_datalist() and the optgroup branch of form_dropdown() interpolated the 'for' id, arbitrary attribute values, datalist ids/options and optgroup labels directly into the markup. The upstream patch (PR #10818, commit a98e673) removes the value-only special case and wraps each of those values in esc() - optgroup label, label 'for' id, generic attribute values, datalist id and option values - with regression tests (testFormInputEscapesAttributes, testFormDropdownEscapesOptgroupLabel, testFormLabelEscapesAttributesAndId, testFormDatalistEscapesOptionsAndName) confirming that a payload such as class="form-control\" onfocus=\"alert(1)\" data-x=\"" is now rendered with " entities. Attribute names themselves are still concatenated from array keys, so the exploitable surface is attacker-influenced attribute/option VALUES supplied by the application, not the framework internals; the vulnerability is only reachable when an application forwards untrusted data into those keys.

Know when Codeigniter4 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
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
vuln.today AI 6.1 MEDIUM

Classic reflected/stored XSS: network, low complexity, no attacker auth, victim must render page (UI:R), scope change into the browser context (S:C) with limited C/I impact and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

Prevalence
Medium
popular PHP MVC framework, broad but not universal web footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2026-63223 CRITICAL POC
9.8 Jul 31

Unauthenticated file upload validation bypass in the CodeIgniter4 PHP framework (versions prior to 4.7.4) lets a remote

CVE-2026-63221 CRITICAL POC
9.4 Jul 31

SQL injection in CodeIgniter4's Query Builder deleteBatch() method (versions 4.3.0 through 4.7.3) allows user-controlled

CVE-2026-63222 HIGH POC
7.5 Jul 31

Path traversal file write in the CodeIgniter4 PHP framework prior to 4.7.4 lets remote unauthenticated attackers place u

CVE-2026-142155 CRITICAL
9.3 Dec 02

Remote code execution in CodeIgniter4 before 4.7.5 stems from filename-based upload validation rules that can be tricked

CVE-2026-142150 CRITICAL
9.2 Dec 02

SQL injection in CodeIgniter4 through 4.7.5 lets unauthenticated remote attackers break out of an already-escaped string

CVE-2026-63220 MEDIUM POC
4.8 Jul 31

HTTP security header spoofing in CodeIgniter4 prior to 4.7.4 allows remote unauthenticated attackers to trick the framew

CVE-2026-142154 HIGH
8.7 Dec 02

PHP code injection in the CodeIgniter4 View Parser (versions before 4.7.5) lets users who can edit template source - for

CVE-2026-142151 HIGH
8.2 Dec 02

Information disclosure in the CodeIgniter4 CURLRequest component before 4.7.5 can leak a previously used Authorization h

CVE-2026-142153 HIGH
7.7 Dec 02

PHP code execution and unintended local file inclusion in CodeIgniter4 before 4.7.5 occur when view data is extracted in

CVE-2026-142152 MEDIUM
6.9 Dec 02

File upload validation bypass in CodeIgniter4 releases before 4.7.5 lets unauthenticated remote attackers slip a disallo

CVE-2026-130845 MEDIUM
5.3 Nov 17

Cross-site scripting in CodeIgniter4 before 4.7.5 allows an attacker who controls a single value rendered through the Vi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy