CVE-2026-7281 SourceCodester Pharmacy Sales and Inventory System index.php supplier cross site scripting

Medium 4.8 Published Updated

Remote attackers can inject malicious scripts via the supplier name field in the Pharmacy Sales and Inventory System, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-7281?

CVE-2026-7281 is a medium-severity cross-site scripting vulnerability in SourceCodester Pharmacy Sales and Inventory System, published on 28 Apr 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

A vulnerability was determined in SourceCodester Pharmacy Sales and Inventory System 1.0. The impacted element is the function supplier of the file /index.php?page=supplier. Executing a manipulation of the argument Name can lead to cross site scripting. The attack may be performed from remote. The exploit has been publicly disclosed and may be utilized.

Weakness: CWE-94, CWE-79

Which versions are affected by CVE-2026-7281?

How do I fix CVE-2026-7281?

No fix has been published for CVE-2026-7281 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-7281 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-7281 exists.

Sources

Also known as GHSA-8r3v-jcm4-29fg.

Is CVE-2026-7281 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free