CVE-2026-10245 Details
Description
A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this issue is the function create_supplier of the file /ShowForm/create_supplier/main. Executing a manipulation of the argument company_name can lead to cross site scripting. The attack can be launched remotely. The exploit has been published and may be used.
A cross-site scripting (XSS) vulnerability has been identified in SourceCodester Pharmacy Sales and Inventory System version 1.0. The issue arises in the 'create_supplier' function within the file '/ShowForm/create_supplier/main'. The vulnerability allows remote attackers to inject malicious scripts by manipulating the 'company_name' parameter, which is then output to the web page without proper encoding or filtering. This flaw could be exploited to execute arbitrary scripts in the context of the user's browser, potentially leading to unauthorized actions or the theft of sensitive information such as cookies or session tokens.
To address this vulnerability, implement proper output encoding for user inputs before displaying them on the web page. Validate and filter input data to reject or escape potentially malicious content, such as script tags or event handlers. Consider using a Content Security Policy (CSP) to restrict the execution of unauthorized scripts. For sensitive cookies, set the HttpOnly and Secure flags to protect against theft via JavaScript and ensure transmission over HTTPS. Regular security audits can help identify and fix XSS vulnerabilities.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 1, 2026CISA-ADP
Assessed Jun 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/timeflies123/cve/issues/3 | [email protected] | ExploitIssue TrackingTechnical Description |
| https://vuldb.com/cve/CVE-2026-10245 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/823937 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/367523 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/367523/cti | [email protected] | Content Wall |
| https://www.sourcecodester.com/ | [email protected] | Vendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SourceCodester Pharmacy Sales and Inventory System | 1.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | New CVE Received | [email protected] |
Volerion