Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise admin credentials
-
DeliveryAuthenticate to /admin/ panel
-
ExploitInject XSS payload into Remarks field of patient record
-
ExecutionVictim admin views poisoned patient record
-
ImpactMalicious script executes in victim's browser 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 attacker to hold a high-privileged (admin) account on the Hospitals Patient Records Management System, as confirmed by the CVSS 4.0 vector component PR:H. The vulnerable endpoint is /admin/?page=patients/view_patient, which is only accessible to authenticated administrators. A passive victim interaction (UI:P) is additionally required - a second privileged user must view the affected patient record for the injected script to execute in their browser context. Exploitation is therefore limited by: (1) the attacker must already possess or compromise an admin credential, (2) a separate victim admin must view the poisoned record, and (3) the admin panel must be network-accessible to the attacker. The application being a SourceCodester demo/community project means it is often deployed without hardened access controls, which marginally increases realistic exposure in unprotected deployments. |
| Impact | Despite a publicly available POC and a network-accessible attack vector, the overall risk is low. The CVSS 4.0 score of 1.9 reflects the high privilege requirement (PR:H) and need for user interaction (UI:P), meaning exploitation requires an authenticated admin account and a second admin or privileged user to view the poisoned patient record. The EPSS score of 0.03% (8th percentile) aligns with this assessment - mass exploitation is implausible. SSVC further classifies the vulnerability as non-automatable with only partial technical impact, reinforcing that this is not a candidate for opportunistic mass exploitation. Integrity impact is limited to the vulnerable system only (VI:L), with no confidentiality or availability consequences. The primary realistic risk is within insider-threat or compromised admin-account scenarios. This vulnerability does not appear in the CISA KEV catalog. There is no apparent conflict between the CVSS signals and the description - both are consistent with a low-severity stored XSS requiring admin access. |
| Exploit ScenarioDerived | An attacker with existing high-privileged (admin) access to the Hospitals PRMS application navigates to a patient record and injects a malicious JavaScript payload into the Remarks field. When a second privileged user - such as another administrator - views that patient's record via /admin/?page=patients/view_patient, the unencoded script executes in their browser session, potentially enabling session token theft or unauthorized UI actions. A public proof-of-concept demonstrating this injection is available via the GitHub issue at https://github.com/Alanener/sysy/issues/1. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Stored cross-site scripting in SourceCodester Hospitals Patient Records Management System 1.0 allows a remote, high-privileged attacker to inject malicious script via the Remarks argument on the /admin/?page=patients/view_patient endpoint, resulting in low-integrity impact when a victim administrator views the affected patient record. A public proof-of-concept exploit exists (GitHub issue), though the CVSS 4.0 base score of 1.9 and EPSS of 0.03% (8th percentile) indicate low real-world exploitation likelihood. This is not listed in the CISA KEV catalog and SSVC classifies it as non-automatable with partial technical impact.
RemediationAI
No vendor-released patch has been identified at time of analysis. SourceCodester/oretnom23 projects are typically open-source community tools without formal patch channels. Administrators should apply output encoding to all user-controlled fields rendered in HTML - specifically the Remarks field in the patient view template - using the hosting language's HTML encoding functions (e.g., htmlspecialchars() in PHP). As a compensating control, restrict access to the admin panel (/admin/) to trusted internal network ranges or VPN only, reducing exposure to network-based exploitation. Input validation should be added server-side to reject or sanitize script-bearing content in the Remarks parameter. The VulDB entry at https://vuldb.com/vuln/365626 and the POC at https://github.com/Alanener/sysy/issues/1 provide additional technical context for developers implementing a fix. There are no known side effects of adding output encoding beyond minor rendering changes if existing data contains intentional HTML markup.
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
The affected product is a PHP-based hospital administration application developed by SourceCodester (also attributed to oretnom23), identified via CPE strings cpe:2.3:a:sourcecodester:hospitals_patient_records_management_system:*:*:*:*:*:*:*:* and cpe:2.3:a:oretnom23:hospitals_patient_records_management_system:*:*:*:*:*:*:*:*. The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting), meaning user-supplied input to the Remarks field is not sanitized or encoded before being rendered in HTML context. The CVSS 4.0 vector (E:P) confirms a proof-of-concept exists. The attack vector is network-based (AV:N) with low attack complexity (AC:L) and no special attack preconditions (AT:N), but requires high privileges (PR:H) and passive victim interaction (UI:P), which significantly constrains the attack surface to authenticated admin sessions.
Know when Hospitals Patient Records Management 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:H/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
Lifecycle Timeline
1DescriptionCVE.org
A vulnerability was found in SourceCodester/oretnom23 Hospitals Patient Records Management System 1.0. The impacted element is an unknown function of the file /admin/?page=patients/view_patient. Performing a manipulation of the argument Remarks results in cross site scripting. Remote exploitation of the attack is possible. The exploit has been made public and could 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.
SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 exposes sensitive patient data to remote
SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 enables remote unauthenticated attackers
SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 allows remote attackers to compromise pa
SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 allows authenticated attackers to extrac
Stored or reflected cross-site scripting in SourceCodester Hospitals Patient Records Management System 1.0 allows a remo
EUVD-2026-31864
GHSA-hjcg-j78j-2g64
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB