Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted input with quote and handler
-
DeliveryApplication passes value to form helper attribute
-
ExploitHelper emits unescaped attribute, breaks markup
-
ExecutionVictim browser renders injected handler
-
ImpactAttacker 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Codeigniter4
View allUnauthenticated file upload validation bypass in the CodeIgniter4 PHP framework (versions prior to 4.7.4) lets a remote
SQL injection in CodeIgniter4's Query Builder deleteBatch() method (versions 4.3.0 through 4.7.3) allows user-controlled
Path traversal file write in the CodeIgniter4 PHP framework prior to 4.7.4 lets remote unauthenticated attackers place u
Remote code execution in CodeIgniter4 before 4.7.5 stems from filename-based upload validation rules that can be tricked
SQL injection in CodeIgniter4 through 4.7.5 lets unauthenticated remote attackers break out of an already-escaped string
HTTP security header spoofing in CodeIgniter4 prior to 4.7.4 allows remote unauthenticated attackers to trick the framew
PHP code injection in the CodeIgniter4 View Parser (versions before 4.7.5) lets users who can edit template source - for
Information disclosure in the CodeIgniter4 CURLRequest component before 4.7.5 can leak a previously used Authorization h
PHP code execution and unintended local file inclusion in CodeIgniter4 before 4.7.5 occur when view data is extracted in
File upload validation bypass in CodeIgniter4 releases before 4.7.5 lets unauthenticated remote attackers slip a disallo
Cross-site scripting in CodeIgniter4 before 4.7.5 allows an attacker who controls a single value rendered through the Vi
EUVD-2026-141419
GHSA-ggmm-h89f-fq3v
NVD
CVE.org
Vulnrichment
Exploit-DB