CVE-2026-10247: SourceCodester Pharmacy Sales and Inventory System main create_generic_name cross site scripting

Published Jun 1, 2026
·
Updated

A vulnerability was found in SourceCodester Pharmacy Sales and Inventory System 1.0. This vulnerability affects the function creategenericname of the file /ShowForm/creategenericname/main. The manipulation of the argument genericname results in cross site scripting. The attack may be launched remotely. The exploit has been made public and could be used.

Affected Software

1 affected component
Sourcecodester Pharmacy Sales and Inventory System=1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove SourceCodester Pharmacy Sales and Inventory System /ShowForm/create_generic_name/main from your environment.

    If the create_generic_name function is not required, remove or disable this endpoint to eliminate the vulnerable code path.

  2. Configuration

    Validate and sanitize the generic_name parameter on the server side and apply proper HTML output encoding before rendering it in any page. Ensure characters such as <, >, &, ' and " are escaped or encoded according to the HTML context to prevent reflected/stored XSS.

    SourceCodester Pharmacy Sales and Inventory System - /ShowForm/create_generic_name/main generic_name input handling = server-side validation and context-appropriate output encoding
  3. Configuration

    Add a strict Content-Security-Policy header to responses (for example, disallow inline scripts and allow scripts only from trusted origins) to reduce the impact of potential XSS exploitation.

    HTTP response headers (web server / application) Content-Security-Policy = restrict script-src to trusted origins; disallow inline scripts where possible
  4. Compensating control

    Deploy a Web Application Firewall (WAF) or equivalent filtering to block XSS payloads targeting the create_generic_name endpoint and consider restricting access to /ShowForm/create_generic_name/main to trusted IPs or authenticated users until the application is fixed.

  5. Operational

    Monitor webserver and application logs for suspicious requests and exploitation attempts against the create_generic_name endpoint; investigate and perform incident response if signs of compromise are detected.

Event History

Jun 1, 2026
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 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-10247?

The severity of CVE-2026-10247 is low with a score of 3.5.

2

How do I fix CVE-2026-10247?

To fix CVE-2026-10247, sanitize and validate user input in the create_generic_name function to prevent cross site scripting.

3

What type of vulnerability is CVE-2026-10247?

CVE-2026-10247 is a cross site scripting (XSS) vulnerability.

4

Which system is affected by CVE-2026-10247?

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

5

What impact does CVE-2026-10247 have on users?

CVE-2026-10247 may allow an attacker to execute scripts in the context of a user's session, potentially leading to data theft or session hijacking.

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