CVE-2025-9845 Details
Description
A vulnerability has been found in code-projects Fruit Shop Management System 1.0. Affected by this vulnerability is an unknown functionality of the file products.php. Such manipulation of the argument product_code/gen_name/product_name/supplier leads to cross site scripting. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.
A stored cross-site scripting vulnerability has been identified in version 1.0 of the Code-Projects Fruit Shop Management System. 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_name, which is then executed in the browsers of users accessing the products.php page, including administrators. The vulnerability could be exploited to steal cookies, including login credentials, and impersonate users, potentially leading to unauthorized changes in product data or other administrative actions.
It is recommended to escape all user-controlled data before outputting it to the HTML page, using functions like htmlspecialchars(). Additionally, validate user inputs on product addition and editing pages to restrict special characters, allowing only legal characters through a whitelist approach.
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/3 | CISA-ADP | ExploitThird Party Advisory |
| https://code-projects.org/ | [email protected] | Product |
| https://github.com/chen2496088236/CVE/issues/3 | [email protected] | ExploitThird Party Advisory |
| https://vuldb.com/?ctiid.322191 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.322191 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.641940 | [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-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 |
|---|---|
| carmelo fruit shop management 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 8, 2025 | Initial Analysis | [email protected] |
| Sep 3, 2025 | CVE Modified | CISA-ADP |
| Sep 3, 2025 | New CVE Received | [email protected] |