CVE-2026-4899

code-projects Online Food Ordering System food.php cross site scripting

Published Mar 26, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
A security flaw has been discovered in code-projects Online Food Ordering System 1.0. Affected by this issue is some unknown functionality of the file /dbfood/food.php. The manipulation of the argument cuisines results in cross site scripting. It is possible to launch the attack remotely. The exploit has been released to the public and may be used for attacks.

Analysis

AI-generated

Technical impact

An input validation failure in the file /dbfood/food.php of the Online Food Ordering System allows an attacker to manipulate the cuisines parameter and inject arbitrary script code that executes in the victim’s browser. The flaw is triggered remotely and does not require authentication; the released exploit can be used to run code on any user who visits the vulnerable page.

Affected Systems

Vulnerable product: Online Food Ordering System version 1.0 developed by code‑projects. The issue is specifically limited to the food.php script handling the cuisines argument and is not reported in other vendors’ products.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity, and the EPSS score is not provided. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires only a crafted HTTP request to the application, making it straightforward for anyone with network access to launch the attack. The absence of input validation or output encoding allows the injected script to run in the browser of any user interacting with the affected resource.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Verify whether the Online Food Ordering System 1.0 is deployed on your infrastructure.
  • If the vendor has released a patch or updated version, apply it immediately.
  • Implement server‑side input validation and output escaping for the cuisines parameter to prevent script injection.
  • If a patch is unavailable, restrict accepted cuisines values to a predefined whitelist.
  • Deploy a Content Security Policy that defaults to a restrictive script source to mitigate any remaining XSS risk.

Generated by OpenCVE AI on March 26, 2026 at 23:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Code-projects
Code-projects online Food Ordering System
Vendors & Products Code-projects
Code-projects online Food Ordering System
Type Values Removed Values Added
Description A security flaw has been discovered in code-projects Online Food Ordering System 1.0. Affected by this issue is some unknown functionality of the file /dbfood/food.php. The manipulation of the argument cuisines results in cross site scripting. It is possible to launch the attack remotely. The exploit has been released to the public and may be used for attacks.
Title code-projects Online Food Ordering System food.php cross site scripting
Weaknesses CWE-79
CWE-94
References
Metrics cvssV2_0

{'score': 3.3, 'vector': 'AV:N/AC:L/Au:M/C:N/I:P/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 2.4, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 2.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-79

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

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 27, 2026, 11:29 AM
Reserved
Mar 26, 2026, 2:33 PM
Status
Deferred
Published
Mar 26, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:57 AM