Skip to main content
CVE Vulnerability Database

CVE-2026-9518: CodeIgniter Student Management XSS Flaw

CVE-2026-9518 is a cross-site scripting vulnerability in CodeIgniter StudentManagementSystem affecting the addStudent function in view_students.php. This article covers technical details, impact assessment, and mitigation.

Published:

CVE-2026-9518 Overview

CVE-2026-9518 is a cross-site scripting (XSS) vulnerability in the hemant6488 CodeIgniter-StudentManagementSystem project. The flaw resides in the addStudent function within view_students.php, part of the Students Controller component. Attackers can manipulate the Name argument to inject malicious script content into the application. The vulnerability is remotely exploitable and the exploit is publicly available. The project uses a rolling release strategy, so specific affected version numbers are not defined. The maintainer was notified through an issue report but has not responded as of publication.

Critical Impact

Remote attackers can inject arbitrary JavaScript through the Name parameter, enabling session theft, credential harvesting, or arbitrary actions in the victim's browser session.

Affected Products

  • hemant6488 CodeIgniter-StudentManagementSystem (rolling release)
  • Students Controller component
  • view_students.php file containing the addStudent function

Discovery Timeline

  • 2026-05-26 - CVE-2026-9518 published to NVD
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2026-9518

Vulnerability Analysis

The vulnerability is a stored or reflected cross-site scripting flaw [CWE-79] in the Students Controller of the CodeIgniter-StudentManagementSystem application. The addStudent function in view_students.php accepts a Name parameter without sufficient output encoding or input sanitization. When the application later renders the supplied value in an HTML context, attacker-controlled script content executes in the browser of any user viewing the affected page. Because the application targets a student management workflow, the injected payload runs in an authenticated administrative or instructor context, amplifying the impact of session hijacking and unauthorized actions.

Root Cause

The root cause is missing or inadequate neutralization of user-supplied input before it is included in generated web output. The addStudent handler trusts the Name argument and writes it into the response without applying HTML entity encoding or contextual escaping. CodeIgniter provides helpers such as html_escape() and form validation rules, but they are not applied to this parameter in the vulnerable code path.

Attack Vector

An attacker submits a crafted Name value containing HTML or JavaScript through the student creation workflow. User interaction is required, as the payload triggers when a victim loads the page that renders the stored or reflected value. The attack requires no authentication or elevated privileges from the attacker and can be delivered remotely over the network. Successful exploitation results in script execution in the victim's browser, with no integrity impact to the underlying server.

The vulnerability manifests in the addStudent function of view_students.php. Because no verified proof-of-concept code is available from a primary source, refer to the GitHub Issue Tracker and the VulDB Vulnerability #365538 entry for further technical details.

Detection Methods for CVE-2026-9518

Indicators of Compromise

  • HTTP POST requests to the student creation endpoint containing <script>, onerror=, onload=, or javascript: substrings in the Name field.
  • Database records or rendered pages in the student list containing unescaped HTML tags or event handler attributes.
  • Anomalous outbound requests from administrator browsers to attacker-controlled domains shortly after viewing the student list.

Detection Strategies

  • Inspect web server access logs for requests to the addStudent route with payloads matching common XSS signatures.
  • Apply web application firewall (WAF) rules that flag HTML or script syntax in form parameters expected to contain alphabetic name data.
  • Perform static code review of view_students.php to confirm whether html_escape() or equivalent encoding is applied to the Name value before output.

Monitoring Recommendations

  • Enable Content Security Policy (CSP) reporting to capture script execution attempts from non-whitelisted sources.
  • Alert on administrator sessions producing unexpected DOM-based network calls after rendering the student list page.
  • Track repeated submissions to view_students.php from a single source containing non-alphabetic characters in name fields.

How to Mitigate CVE-2026-9518

Immediate Actions Required

  • Apply server-side input validation that restricts the Name field to expected character sets such as letters, spaces, and hyphens.
  • Apply HTML entity encoding through CodeIgniter's html_escape() helper on every rendering of student names.
  • Place the application behind a WAF with rules tuned to block reflected and stored XSS payloads until the code is patched.

Patch Information

No official patch is available. The project follows a rolling release model and the maintainer has not responded to the disclosure issue. Track the GitHub Issue Tracker for upstream fixes, or maintain a private fork with the sanitization changes applied to view_students.php.

Workarounds

  • Modify the addStudent function to call html_escape($name) or use xss_clean filtering before storing or echoing the value.
  • Deploy a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
  • Restrict access to the student management interface to trusted internal networks using VPN or IP allow-listing.
bash
# Configuration example: enforce a restrictive Content Security Policy header
# Add to the application's base controller or web server configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'"
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options "nosniff"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.