Skip to main content

Pharmacy Sales and Inventory System CVE-2026-10247

| EUVDEUVD-2026-33621 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-06-01 VulDB GHSA-g9gc-69gg-376j
2.0
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege account credentials
  2. Delivery
    Craft XSS payload in generic_name field
  3. Exploit
    Submit malicious input via create_generic_name form
  4. Execution
    Victim user loads affected page
  5. Impact
    Injected 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Pharmacy Sales and Inventory System 1.0

Affected Packages

euvd pharmacy_sales_and_inventory_system no fix

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

Vendor (VulDB) PRIMARY 2.0 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 01, 2026 - 11:22 NVD
3.5 (LOW) 2.0 (LOW)

DescriptionCVE.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

EPSS Score
0.0%
Top 89% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2022-30407 CRITICAL POC
9.8 May 13

Pharmacy Sales And Inventory System v1.0 is vulnerable to SQL Injection via /pharmacy-sales-and-inventory-system/manage_

CVE-2026-10255 MEDIUM POC
5.5 Jun 01

Unauthenticated remote information disclosure in SourceCodester Pharmacy Sales and Inventory System 1.0 allows network-b

CVE-2026-8083 MEDIUM POC
5.5 May 07

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7550 MEDIUM POC
5.5 May 01

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,

CVE-2026-7549 MEDIUM POC
5.5 May 01

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra

CVE-2026-7199 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7194 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 exposes the `/ajax.php?action=save_product` endp

CVE-2026-7127 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,

CVE-2026-7126 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7088 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7087 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra

CVE-2026-6189 MEDIUM POC
5.5 Apr 13

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extra

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy