Junglewise Threat Intelligence

CVE-2026-10248: SourceCodester Pharmacy Sales and Inventory System CSV injection in Supplier Creation Interface

CVE-2026-10248 · Severity: medium · CVSS 4.7 · Published 2026-06-01

Technologies: SourceCodester Pharmacy Sales and Inventory System. Vendors: SourceCodester.

Executive brief

A vulnerability exists in the SourceCodester Pharmacy Sales and Inventory System, a software used to manage pharmaceutical stock and sales. An attacker with administrative access can inject malicious formulas into supplier records. When another user exports this data to a CSV file and opens it in a spreadsheet program like Excel, the malicious code can execute, potentially leading to the theft of sensitive data or unauthorized access to the user's computer.

Technical details

A CSV Injection (Formula Injection) vulnerability exists in the 'create_supplier' function within the '/Export_csv/export' component of SourceCodester Pharmacy Sales and Inventory System v1.0. The application fails to sanitize user-supplied input in fields such as 'Address' and 'Company Name' before including them in CSV exports. An attacker with high privileges (PR:H) can inject spreadsheet formulas (starting with =, +, -, or @). When an administrator exports the supplier list and opens it in a spreadsheet application like Microsoft Excel or WPS Spreadsheet, these formulas execute. This can be used for data exfiltration via HYPERLINK functions or potential remote command execution depending on the spreadsheet environment. A public exploit (PoC) has been disclosed.

Affected products

  • SourceCodester Pharmacy Sales and Inventory System 1.0

Timeline

  • 2026-05-09: disclosed: Vulnerability details and PoC shared on GitHub.
  • 2026-06-01: advisory: CVE-2026-10248 published.

References

Related threats