Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-142138— CodeIgniter4 through 4.7.6 XSS via Unescaped Form Helper Attribute Values

Quick assessment

Affected
codeigniter4 CodeIgniter4
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

CodeIgniter4 在 4.7.6 及更早版本中, 及相关表单辅助函数存在跨站脚本(XSS)漏洞:这些函数仅对 value 键进行转义。能够影响传递给 、 、 或 的值的攻击者,可注入双引号并添加事件处理器,从而在受害者浏览器中执行脚本。

CVSS 6.1 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-142138

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
CodeIgniter4 through 4.7.6 XSS via Unescaped Form Helper Attribute Values
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
codeigniter4 CodeIgniter4 4.0.0 ~ 4.7.6 -

II. Public POCs for CVE-2026-142138

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-142138

请登录查看更多情报信息。

Other References for CVE-2026-142138 (6)

Same Patch Batch · codeigniter4 · 2026-12-02 · 7 CVEs total

CVE-2026-142155 9.8 CRITICAL CodeIgniter4 before 4.7.5 Upload Validation Bypass via Trailing Dots and PHP Extensions
CVE-2026-142154 8.8 HIGH CodeIgniter4 before 4.7.5 Code Injection via View Parser Conditionals
CVE-2026-142150 8.1 HIGH CodeIgniter4 before 4.7.6 SQL Injection via Named Bind Placeholders in Query Builder
CVE-2026-142153 7.5 HIGH CodeIgniter4 before 4.7.5 Code Injection via View Data Key Collision
CVE-2026-142151 5.9 MEDIUM CodeIgniter4 before 4.7.5 Credential Disclosure via CURLRequest Option Persistence
CVE-2026-142152 5.3 MEDIUM CodeIgniter4 before 4.7.5 File Upload Validation Bypass via Empty File Entry

IV. Related Vulnerabilities