Skip to main content

Pharmacy Sales and Inventory System CVE-2026-10244

| EUVDEUVD-2026-33616 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-06-01 VulDB GHSA-m84h-9wm2-4ch9
2.0
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege account
  2. Delivery
    Submit crafted medicine_name XSS payload
  3. Exploit
    Payload stored or reflected in application
  4. Execution
    Administrator or privileged user loads affected page
  5. Persist
    Malicious script executes in victim browser
  6. Impact
    Session token stolen or victim action hijacked

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 be authenticated with at least a low-privilege account on the application (PR:L per CVSS 4.0 vector) - unauthenticated exploitation is not supported by the available data. A second authenticated user must passively load or view the page where the injected medicine_name value is rendered (UI:P per CVSS vector), so exploitation is not self-contained and requires social engineering or natural workflow to trigger victim page load. The vulnerable code path is scoped to the create_medicine_name function at /ShowForm/create_medicine_name/main, so the endpoint must be reachable and the low-privileged account must have permission to submit medicine name entries. Exploitation impact is bounded to the vulnerable system's integrity (VI:L) with no confirmed lateral or cross-system scope (SC:N/SI:N/SA:N per CVSS vector).

Impact

The CVSS 4.0 base score of 2.0 is low, driven by the constrained impact metrics: no confidentiality impact (VC:N/SC:N), only low integrity impact on the vulnerable system (VI:L), and no availability impact. The attack requires low privileges (PR:L) and passive user interaction from a second party (UI:P), meaning exploitation is not fully autonomous - an attacker cannot independently trigger the payload without a victim loading the page. No EPSS score was provided in the source data and cannot be assessed. The vulnerability is not listed in CISA KEV, so no confirmed active exploitation is on record. However, a publicly available proof-of-concept exists (confirmed by the GitHub reference and the CVSS E:P supplemental metric), which meaningfully lowers attacker skill requirements. In realistic multi-user pharmacy deployments where clerks or untrusted staff can create medicine records reviewed by administrators, the XSS payload could be used for session hijacking or credential phishing - risks disproportionate to the raw CVSS score in that context. Risk is best characterized as low in single-user or tightly access-controlled deployments and moderate in shared-user environments.

Exploit ScenarioDerived

A low-privileged authenticated user - such as a pharmacy inventory clerk - submits a medicine name entry containing an injected JavaScript payload (e.g., a script tag or event-handler attribute) via the /ShowForm/create_medicine_name/main form. When a pharmacist or administrator subsequently opens the medicine records page, the unencoded payload executes in their browser, potentially stealing session cookies or redirecting the victim to a credential-harvesting page. A publicly available proof-of-concept on GitHub confirms this injection path and requires minimal attacker sophistication to reproduce.

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

Cross-site scripting in SourceCodester Pharmacy Sales and Inventory System 1.0 allows a low-privileged authenticated attacker to inject malicious JavaScript via the medicine_name parameter at the /ShowForm/create_medicine_name/main endpoint, executing arbitrary scripts in the browsers of other users who view the affected page. The CVSS 4.0 score of 2.0 reflects a narrow impact profile - no confidentiality loss and only low integrity impact - but a publicly available proof-of-concept exploit exists (E:P), lowering the barrier to abuse in multi-user deployments such as shared pharmacy management environments. No active exploitation has been confirmed via CISA KEV.

RemediationAI

No vendor-released patch has been identified at time of analysis; SourceCodester open-source applications are typically provided without formal patch channels. The direct fix is to apply output encoding - in PHP, wrapping the medicine_name value with htmlspecialchars() before rendering it in any HTML context eliminates the CWE-79 root cause without functional side effects. As a compensating control, restrict access to the /ShowForm/create_medicine_name/main endpoint to administrator-role accounts only, removing low-privileged users' ability to submit medicine name values and collapsing the PR:L attack surface; this may affect workflow if clerks routinely create medicine entries. Additionally, deploying a Content Security Policy (CSP) response header that disallows inline scripts (script-src 'self') limits the blast radius of any successful XSS injection by blocking unauthorized script execution in the browser, though this requires testing for compatibility with the application's own inline JavaScript. The public proof-of-concept is documented at https://github.com/timeflies123/cve/issues/2 and the VulDB entry at https://vuldb.com/vuln/367522 for further technical detail.

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) identifies the root cause as missing or inadequate output encoding of user-supplied input before it is rendered into HTML. The vulnerable component is the create_medicine_name PHP function exposed at the HTTP endpoint /ShowForm/create_medicine_name/main, where the medicine_name argument is processed and reflected or stored without sanitization. SourceCodester distributes open-source PHP-based web applications intended as learning templates, commonly deployed in shared LAMP-stack environments with minimal hardening. The CPE string cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:* uses a wildcard version field, indicating NVD has not narrowed the affected version range beyond the 1.0 explicitly cited in the description. The CVSS 4.0 vector confirms network reachability (AV:N) with no prerequisite vulnerability chaining (AT:N), consistent with a directly exploitable web input field.

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 detected in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this vulnerability is the function create_medicine_name of the file /ShowForm/create_medicine_name/main. Performing a manipulation of the argument medicine_name results in cross site scripting. The attack can be initiated remotely. The exploit is now public and may be used.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 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