code-projects Voting System CVE-2025-11421
LOWAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as low-privilege user
-
DeliveryNavigate to candidates edit form
-
ExploitInject script tag in Firstname/Lastname/Platform field
-
InstallSubmit form
-
C2Script stored in database
-
ExecuteAdministrator views candidate record
-
ImpactMalicious script executes in admin's browser
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: (1) Valid authenticated access to the Voting System with low-privilege user role (PR:L in CVSS vector), typically a staff account with permission to edit candidate records. (2) Access to the /admin/candidates_edit.php endpoint (network-accessible, AV:N). (3) User interaction (UI:P in CVSS) - a victim administrator must view the page containing the injected payload for the XSS to execute. (4) No special server configuration is required; default installations are vulnerable. The attack does NOT require exploitation of additional vulnerabilities or complex setup. Mitigation factors: the application must be exposed to multiple users (not single-user); victims must browse to the affected page after payload injection; browser-level XSS protection (if enabled) may partially mitigate execution; and the impact is limited to integrity (script execution), not authentication bypass or code execution on the server. |
| Impact | Real-world risk is LOW despite published POC. The CVSS 4.0 vector indicates low severity with integrity impact only (VI:L, no confidentiality or availability impact), and the EPSS score of 0.03% (7th percentile) reflects minimal exploitation likelihood in practice. The authentication requirement (PR:L) and user interaction (UI:P) significantly constrain the attack surface compared to an unauthenticated network RCE. The published POC exists but exploitation requires prior access to an authenticated admin account and relies on victim interaction to trigger XSS payload execution. This is a privilege-abuse or insider-threat scenario rather than external compromise vector. Organizations running this legacy system should treat it as low priority relative to network-exploitable vulnerabilities, but should still remediate if the application handles sensitive voting data. |
| Exploit ScenarioDerived | An authenticated user with admin panel access (e.g., a staff member with candidate management privileges) navigates to /admin/candidates_edit.php and edits a candidate record. In the Firstname field, they inject a payload such as '<img src=x onerror="alert('XSS')">'. When another administrator views the candidate list or candidate details page that displays this field without encoding, the JavaScript executes in their browser, potentially exfiltrating session cookies or performing actions on their behalf. A publicly available POC demonstrates this technique on GitHub. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Stored cross-site scripting (XSS) in code-projects Voting System 1.0 allows authenticated users with low privileges to inject malicious scripts via the Firstname, Lastname, or Platform parameters in /admin/candidates_edit.php, which execute in the context of other users' browsers when the edited candidate record is viewed. The vulnerability requires user interaction (UI:P) but affects integrity of data displayed to administrators. Exploit code is publicly available on GitHub, though EPSS score of 0.03% indicates limited real-world exploitation despite published POC.
RemediationAI
The primary remediation is to upgrade to a patched version if available from the vendor at code-projects.org; however, no patched version number is confirmed in available data. Immediate compensating controls: (1) Apply HTML entity encoding (htmlspecialchars() with ENT_QUOTES flag in PHP) to all output of the Firstname, Lastname, and Platform fields in both edit forms and candidate display pages to prevent XSS execution. (2) Implement input validation to reject or strip script tags and event handlers from these fields on both client and server side. (3) Restrict access to /admin/candidates_edit.php to only administrative users with verified need, using role-based access control (RBAC), reducing the pool of potential attackers. (4) Enable Content Security Policy (CSP) headers with script-src 'self' to limit inline script execution. These controls address the root cause (improper output encoding) without requiring application restart. Note that input validation alone is insufficient without output encoding, as data may be legitimately stored and later displayed in contexts where encoding is essential.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a reflected or stored XSS flaw (CWE-79) in a PHP-based voting system web application. The affected endpoint /admin/candidates_edit.php fails to properly sanitize or encode user-supplied input in candidate profile fields (Firstname, Lastname, Platform) before storing or displaying them. This allows injection of JavaScript code that executes when administrators or other users view the manipulated candidate records. The attack vector is network-accessible (AV:N) and requires only low-privilege authentication (PR:L), suggesting the application has role-based access control where authenticated users can modify candidate data without proper input validation.
Know when Voting System 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:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (vuldb) · only source for this CVE.
CVSS VectorVendor: vuldb
DescriptionCVE.org
A flaw has been found in code-projects Voting System 1.0. The affected element is an unknown function of the file /admin/candidates_edit.php. This manipulation of the argument Firstname/Lastname/Platform causes cross site scripting. Remote exploitation of the attack is possible. The exploit has been published and may be used.
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.
Affected Products (CPE)CVE.org
More in Voting System
View allA vulnerability, which was classified as critical, was found in code-projects Voting System 1.0. Rated high severity (CV
A vulnerability, which was classified as critical, has been found in code-projects Voting System 1.0. Rated high severit
Unrestricted file upload in code-projects Voting System 1.0 allows authenticated remote attackers to upload arbitrary fi
SQL injection vulnerability in code-projects Voting System 1.0 allows remote authenticated attackers to manipulate the I
SQL injection in Code-projects Voting System 1.0 allows remote authenticated attackers with low privileges to execute ar
Authenticated SQL injection in code-projects Voting System 1.0 allows a low-privileged attacker to manipulate the descri
SQL injection in code-projects Voting System 1.0 allows authenticated remote attackers to execute arbitrary SQL commands
SQL injection in code-projects Voting System 1.0 allows authenticated low-privilege attackers to manipulate the ID param
SQL injection in Voting System 1.0 allows remote attackers with low privileges to manipulate database queries via the fi
Stored cross-site scripting (XSS) in code-projects Voting System 1.0 allows remote attackers to inject malicious scripts
Unrestricted file upload in code-projects Voting System 1.0 allows authenticated high-privilege administrators to upload
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB