Skip to main content

CodeIgniter4 CVE-2026-130845

| EUVDEUVD-2026-127257 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-17 VulnCheck GHSA-xcpm-5rj4-v7wf
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 input containing {other|raw} Parser syntax
  2. Delivery
    Data rendered through View Parser with a cross-reference
  3. Exploit
    Later substitution pass emits referenced value unescaped
  4. Execution
    Victim views affected (possibly stored) page
  5. Impact
    JavaScript executes in application origin

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

Exploitable only when the application renders attacker-controlled data through CodeIgniter4's View Parser (system/View/Parser.php) and the rendering allows one attacker-controlled value to introduce a Parser reference (e.g. {other|raw} or {!other!}) to a second attacker-controlled value - including within variable pairs and nested loops. The attacker does NOT need to control the template itself. Key limiting factors: (1) applications that do not pass untrusted data through the View Parser are not affected at all; (2) success depends on the specific template structure and substitution order; (3) a victim must view the rendered output (UI:P). Critically, there is no configuration-only workaround - explicitly enabling HTML escaping, calling setData(..., 'html'), or disabling individual filters does NOT prevent exploitation; only upgrading to v4.7.5 (or backporting the fix, or converting affected templates to plain PHP views with explicit escaping) resolves it.

Impact

This is a moderate-severity, conditionally-exploitable XSS rather than a drop-everything emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:L/VI:L) scores 5.3 and is consistent with reflected/stored cross-site scripting: network-reachable, no privileges, but requiring a victim to view the rendered page (UI:P) and yielding only limited confidentiality/integrity impact. No EPSS probability was supplied in the input, there is no CISA KEV listing, and no public exploit was identified at time of analysis - so exploitation-likelihood signals are either absent or low. The vuln.today priority is 'this_month' (not act_now/emergency), which aligns with a real-but-not-urgent issue. The most important caveat is that real-world risk is gated by application design, not just the CVSS metrics: per the GHSA advisory, only applications that render attacker-controlled data through CodeIgniter's optional View Parser, in a way that lets one attacker-controlled value introduce a reference to another, are affected. Note a nuance the CVSS does not capture - the advisory states exploitation 'depends on the template structure and substitution order,' conditions the attacker does not fully control, so AC:L may understate real-world difficulty for a given deployment. Reported by VulnCheck; a patch is confirmed available.

Exploit ScenarioDerived

In an application that renders untrusted input through the View Parser, an attacker submits a value such as '{evil|raw}' or '{!evil!}' into one field while placing HTML/JavaScript into the referenced value. During a subsequent substitution pass the injected placeholder is interpreted as Parser syntax and the referenced value is emitted without escaping, even under default HTML escaping. When a victim views the affected (potentially stored) page, the script executes in their browser under the application's origin. No public exploit was identified at time of analysis, though the advisory and patch tests document the exact payload shapes.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 18, 2026

Cross-site scripting in CodeIgniter4 before 4.7.5 allows an attacker who controls a single value rendered through the View Parser (system/View/Parser.php) to inject Parser syntax - such as {other|raw} or {!other!} - that is re-interpreted on a later substitution pass and emits a second attacker-controlled value without escaping, executing script in a visitor's browser under the application's origin. Only applications that pass untrusted data through the View Parser are exposed, and success further depends on the template structure and substitution order; a victim must view the rendered output (UI:P per the CVSS 4.0 vector, UI:R in the 3.1 assessment). No public exploit code was identified at time of analysis and the issue is not in CISA KEV; the vendor has released 4.7.5 as the fix.

RemediationAI

Vendor-released patch: upgrade to CodeIgniter4 4.7.5 or later (composer/codeigniter4/framework 4.7.5), per GHSA-vgrf-mv2j-gp8w (https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-vgrf-mv2j-gp8w) and the upstream fix commit https://github.com/codeigniter4/CodeIgniter4/commit/641ee5b6d7b1fb11453b3a3c7d7b83fa198de281. The vendor states there is no configuration-only workaround: explicitly enabling HTML escaping, calling setData(..., 'html'), or disabling individual filters does not prevent exploitation. Applications that cannot upgrade immediately should stop passing untrusted data through the View Parser - the trade-off is a rework of the affected rendering paths - or convert affected templates to ordinary PHP views with explicit, context-appropriate output escaping, which changes template authoring and loses Parser features such as filter syntax. As a third option the vendor points to backporting the security fix into the installed framework version, which carries the usual maintenance burden of carrying a local patch until a supported release is adopted.

Affected VersionsENISA

CodeIgniter4 0 <4.7.5

Affected Packages

euvd codeigniter4 fix: 4.7.5

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

The CodeIgniter4 View Parser is a lightweight templating layer that performs successive string substitution passes over a template using placeholders such as {variable}, {variable|raw} and {!variable!}, plus variable pairs and nested loops. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): values inserted by one substitution pass are fed back into later passes as template text, so an attacker-controlled value containing Parser syntax can be interpreted as a directive rather than data. Because the injected directive can target a different variable, auto-escaping applied to the first value does not prevent the second value from being emitted unescaped - the advisory notes this affects the default HTML escaping and explicit setData(..., 'html') alike, and that the attacker does not need to control the template itself. The upstream fix (commit 641ee5b6d7b1fb11453b3a3c7d7b83fa198de281) makes substitutions opaque: replaceSingle() stores escape-protected replacements in a map keyed by tokens of the form \x1A<random 16-byte hex prefix>:<index>\x1A, the prefix is regenerated per parse() call and restored in a finally block, and the tokens are resolved with a final strtr() after noparse handling. Built-in Plugins output is tokenized as well, while custom plugins that intentionally return template code for further processing are left alone. The commit also broadens pair-key registration inside parsePair() and adjusts docblocks in app/Config/View.php and system/Config/View.php; the accompanying ParserTest additions cover top-level no-escape delimiters and filter cases.

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:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 6.1 MEDIUM

Network-reachable unauthenticated XSS requiring a victim to view the page (UI:R), with scope change into the browser and limited confidentiality/integrity impact; AC:L mirrors the vendor assessment though template-specific conditions apply.

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:P/VC:L/VI:L/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
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

CodeIgniter4 before 4.7.5 contains a cross-site scripting vulnerability in the View Parser (system/View/Parser.php) that allows attackers to bypass auto-escaping through re-scanned substitutions. Attackers controlling one rendered value can inject Parser syntax like {other|raw} or {!other!} to emit unescaped attacker-controlled values, executing scripts in viewers' browsers.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
popular PHP framework, but the vulnerable View Parser is an optional feature
Data Quality
5 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 0.4%
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

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.

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