Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege account credentials
-
DeliveryCraft XSS payload in generic_name field
-
ExploitSubmit malicious input via create_generic_name form
-
ExecutionVictim user loads affected page
-
ImpactInjected 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 | The attacker must hold a valid low-privilege authenticated session in the Pharmacy Sales and Inventory System (PR:L per CVSS vector) - unauthenticated exploitation is not possible. The attack targets the create_generic_name function at /ShowForm/create_generic_name/main, meaning this specific form feature must be accessible to the attacker's account role. Exploitation also requires a separate victim user with a valid session to load the page containing the injected payload (UI:R per CVSS vector), making purely automated exploitation without social engineering or a shared-view context unlikely. The vulnerability is limited to SourceCodester Pharmacy Sales and Inventory System 1.0 and does not affect other products. Environments that restrict form submission to a single trusted administrator account or that have no multi-user access would face minimal practical risk. |
| Impact | The CVSS base score of 3.5 (Low) accurately reflects a constrained real-world impact. The vector AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N confirms remote exploitability with low attack complexity but requires the attacker to hold at least a low-privileged account (PR:L) and requires victim interaction (UI:R), ruling out opportunistic mass exploitation. Scope is unchanged (S:U), meaning the injected script cannot pivot to other origins or browser contexts beyond the current application. The temporal modifier E:P confirms a publicly available proof-of-concept exists, raising practical risk modestly above the base score. No EPSS score was provided in source intelligence, so exploitation probability cannot be quantified numerically. Absence from CISA KEV indicates no confirmed active exploitation has been reported to CISA as of analysis date. The combination of low CVSS, no KEV listing, required authentication, and limited impact (integrity only) places this as a low operational priority relative to most vulnerabilities, though the public POC lowers the bar for abuse in environments where multiple users share low-privilege accounts. |
| Exploit ScenarioDerived | An authenticated low-privilege user (e.g., a pharmacy clerk with a standard account) submits a crafted generic_name value containing a malicious JavaScript payload via the create_generic_name form. When a higher-privileged user such as a pharmacist or administrator views the affected page, their browser executes the injected script within the application's origin, potentially enabling session token theft or UI redirection. Publicly available exploit code on GitHub (https://github.com/timeflies123/cve/issues/5) provides a ready-made payload, lowering the technical skill threshold for exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Stored or reflected cross-site scripting in SourceCodester Pharmacy Sales and Inventory System 1.0 allows authenticated remote attackers to inject malicious scripts via the generic_name parameter of the create_generic_name function at /ShowForm/create_generic_name/main. Exploitation requires victim user interaction (UI:R) to trigger script execution, limiting impact to low integrity loss with no confidentiality or availability impact (CVSS 3.5). Publicly available exploit code exists per the GitHub issue tracker reference, though this CVE is not listed in the CISA KEV catalog and EPSS data was not provided in source intelligence.
RemediationAI
No vendor-released patch has been identified at time of analysis - VulDB (https://vuldb.com/cve/CVE-2026-10247) and the referenced GitHub issue (https://github.com/timeflies123/cve/issues/5) confirm the finding but no fix version is documented. As SourceCodester publishes open-source PHP code, operators with development capability should apply output encoding to the generic_name parameter before rendering, specifically using htmlspecialchars() or equivalent framework escaping in the create_generic_name view. As a compensating control, restrict access to the /ShowForm/create_generic_name/main endpoint to trusted administrative roles only, reducing the pool of authenticated users who can supply input - note this does not eliminate the vulnerability but narrows the attack surface. Web application firewall rules blocking script-tag injection patterns on the generic_name parameter can further reduce risk, though WAF bypass is trivial for skilled attackers. Content-Security-Policy headers disabling inline scripts would mitigate XSS execution impact even if injection succeeds.
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
CWE-79 (Improper Neutralization of Input During Web Page Generation) indicates the application fails to sanitize or encode user-supplied input before rendering it in a browser context. The vulnerable endpoint is the create_generic_name PHP function within /ShowForm/create_generic_name/main, a form handler in a SourceCodester-published PHP-based pharmacy management web application. The CPE cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:* covers all sub-versions of the 1.0 release. SourceCodester applications are open-source academic/demo projects commonly deployed in educational or small-business settings, meaning they typically receive little security maintenance and may lack output encoding frameworks.
Know when Pharmacy Sales And Inventory 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
Lifecycle Timeline
1DescriptionCVE.org
A vulnerability was found in SourceCodester Pharmacy Sales and Inventory System 1.0. This vulnerability affects the function create_generic_name of the file /ShowForm/create_generic_name/main. The manipulation of the argument generic_name results in cross site scripting. The attack may be launched remotely. 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.
Pharmacy Sales And Inventory System v1.0 is vulnerable to SQL Injection via /pharmacy-sales-and-inventory-system/manage_
Unauthenticated remote information disclosure in SourceCodester Pharmacy Sales and Inventory System 1.0 allows network-b
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 exposes the `/ajax.php?action=save_product` endp
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extra
EUVD-2026-33621
GHSA-g9gc-69gg-376j
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB