CVE-2026-30563

Published Mar 30, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
A Stored Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0. The vulnerability is located in the update_details.php file. The application fails to sanitize the "website" parameter provided in a POST request. This allows authenticated attackers to inject arbitrary web script or HTML that is stored in the database and executed whenever the store details page is accessed.

Analysis

AI-generated

Technical impact

The vulnerability allows an authenticated user to store arbitrary JavaScript or HTML in the database by submitting malicious content through the "website" input in a POST request. When the store details page is later accessed, the unsanitized data is rendered, causing the script to run in the victim’s browser. This can lead to defacement, credential theft, or other browser‑based attacks.

Affected Systems

The vulnerable product is the SourceCodester Sales and Inventory System, version 1.0. No other vendor or version details are published.

Risk and Exploitability

The base score of 6.1 indicates medium severity. Exploit probability is low, reflected by an EPSS below 1%, and the flaw is not listed among known exploited vulnerabilities. Because the attacker must first be authenticated, exposure is limited to compromised accounts, but any user who views the affected page would have the malicious payload executed, potentially affecting many users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Sales and Inventory System to a patched version that sanitizes the website field.
  • If a patch is not available, modify update_details.php to escape or remove HTML and JavaScript from the input before storing it in the database.
  • Add a Content‑Security‑Policy header to restrict script execution and mitigate unintended script runs.

Generated by OpenCVE AI on April 2, 2026 at 05:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester sales And Inventory System
Type Values Removed Values Added
Title Stored XSS in SourceCodester Sales and Inventory System via Unsanitized Website Field
Type Values Removed Values Added
First Time appeared Ahsanriaz26gmailcom
Ahsanriaz26gmailcom sales And Inventory System
CPEs cpe:2.3:a:ahsanriaz26gmailcom:sales_and_inventory_system:1.0:*:*:*:*:*:*:*
Vendors & Products Ahsanriaz26gmailcom
Ahsanriaz26gmailcom sales And Inventory System
Type Values Removed Values Added
Title Stored XSS in SourceCodester Sales and Inventory System via Unsanitized Website Field
Type Values Removed Values Added
Weaknesses CWE-79
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A Stored Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0. The vulnerability is located in the update_details.php file. The application fails to sanitize the "website" parameter provided in a POST request. This allows authenticated attackers to inject arbitrary web script or HTML that is stored in the database and executed whenever the store details page is accessed.
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 30, 2026, 3:28 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Analyzed
Published
Mar 30, 2026, 3:16 PM
Modified
Jun 17, 2026, 10:32 AM