CVE-2025-9921 Details
Description
A weakness has been identified in code-projects POS Pharmacy System 1.0. Affected is an unknown function of the file /main/products.php. This manipulation of the argument product_code/gen_name/product_name/supplier causes cross site scripting. The attack can be initiated remotely. The exploit has been made available to the public and could be exploited.
A stored cross-site scripting vulnerability has been identified in Code-Projects POS Pharmacy System version 1.0. The issue resides in the products.php file, where product information is retrieved from the database and displayed without proper escaping of special characters. This flaw allows attackers to inject malicious JavaScript into fields such as product_code, gen_name, product_name, and supplier. When other users, including administrators, access the products.php page, the injected scripts are executed by the browser. This vulnerability could be exploited to hijack sessions, steal sensitive information, conduct phishing attacks, or abuse permissions, especially if the victim is an administrator.
It is recommended to escape all user-controllable data before outputting it to the HTML page. This can be done using the htmlspecialchars() function. Additionally, input validation should be strengthened to restrict special characters and allow only legal characters through a whitelist mechanism.
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.
CISA-ADP
Assessed Sep 3, 2025References 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/chen2496088236/CVE/issues/4 | CISA-ADP | ExploitThird Party Advisory |
| https://code-projects.org/ | [email protected] | Product |
| https://github.com/chen2496088236/CVE/issues/4 | [email protected] | ExploitThird Party Advisory |
| https://vuldb.com/?ctiid.322322 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.322322 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.642420 | [email protected] | Third Party AdvisoryVDB Entry |
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 |
|---|---|
| code-projects pos pharmacy system | 1.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Sep 9, 2025 | Initial Analysis | [email protected] |
| Sep 3, 2025 | CVE Modified | CISA-ADP |
| Sep 3, 2025 | New CVE Received | [email protected] |