CVE-2026-10245: SourceCodester Pharmacy Sales and Inventory System main create_supplier cross site scripting

Published Jun 1, 2026
·
Updated

A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this issue is the function createsupplier of the file /ShowForm/createsupplier/main. Executing a manipulation of the argument companyname can lead to cross site scripting. The attack can be launched remotely. The exploit has been published and may be used.

Affected Software

1 affected component
Sourcecodester SourceCodester Pharmacy Sales and Inventory System=1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Sanitize and validate the company_name parameter on the server side in the create_supplier function. Reject or strip HTML/JavaScript characters and apply proper contextual output encoding/escaping before rendering the value in any HTML page to prevent reflected/stored XSS.

    SourceCodester Pharmacy Sales and Inventory System - /ShowForm/create_supplier/main (create_supplier) company_name input handling = server-side input validation and contextual output encoding (escape or remove HTML/JS)
  2. Compensating control

    Until code is fixed, deploy a Web Application Firewall (WAF) or IPS rule to block common XSS payloads targeting the /ShowForm/create_supplier/main endpoint, and consider restricting access to the endpoint to trusted IP ranges.

  3. Operational

    Monitor web server and application logs for exploitation attempts against /ShowForm/create_supplier/main; if signs of compromise are detected, invalidate affected sessions and rotate any credentials or secrets that may have been exposed.

Event History

Jun 1, 2026
CVE Published
via MITRE·09:30 AM
Data Sourced
via MITRE·09:30 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-10245?

The severity of CVE-2026-10245 is low, with a score of 3.5 according to the CVSS.

2

How do I fix CVE-2026-10245?

To fix CVE-2026-10245, validate and sanitize user inputs in the create_supplier function to prevent cross-site scripting.

3

What software is affected by CVE-2026-10245?

CVE-2026-10245 affects SourceCodester Pharmacy Sales and Inventory System version 1.0.

4

What type of vulnerability is CVE-2026-10245?

CVE-2026-10245 is classified as a cross-site scripting (XSS) vulnerability.

5

How can CVE-2026-10245 be exploited?

CVE-2026-10245 can be exploited by manipulating the company_name parameter in the create_supplier function, allowing remote attackers to execute malicious scripts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203