CVE-2026-4898

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

Published Mar 26, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was identified in code-projects Online Food Ordering System 1.0. Affected by this vulnerability is an unknown functionality of the file /dbfood/contact.php. The manipulation of the argument Name leads to cross site scripting. It is possible to initiate the attack remotely. The exploit is publicly available and might be used.

Analysis

AI-generated

Technical impact

A stored cross‑site scripting vulnerability exists in the contact.php script of the Online Food Ordering System. The system accepts user input via the "Name" argument and echoes it back without proper sanitization, allowing an attacker to insert malicious scripts that will run in the browsers of any user viewing the affected page. The flaw is classified as CWE‑79 and can be triggered by sending a crafted request. The attack leverages the web application’s ability to store and display user-provided data, and the vulnerability can be triggered from any remote host that can reach the application. The publicly available exploit demonstrates that no special privileges or credentials are required. The CVSS score of 5.3 indicates moderate severity, and the EPSS score is not available. The flaw is not listed in CISA’s KEV catalog, yet the presence of a public exploit and the ability to inject scripts remotely mean that exposed installations are at risk of defacement, data theft, or session hijacking.

Affected Systems

The affected product is the Online Food Ordering System 1.0 from code‑projects. The issue resides in the file /dbfood/contact.php, specifically where the "Name" form field is processed and displayed. No additional version information is available beyond the stated 1.0 release.

Risk and Exploitability

Given the moderate CVSS score and the lack of EPSS data, the risk is considered significant due to the remote nature of the attack and the availability of a public exploit. Attackers can compromise the integrity of the web page, execute arbitrary JavaScript, and potentially affect the confidentiality of user data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest patch released by code‑projects, if one exists.
  • If no patch is available, update contact.php to sanitize the Name field, for example by applying PHP’s htmlspecialchars() before output.
  • Add server‑side validation to restrict the Name input to a safe set of characters (alphanumeric and limited punctuation) and enforce a maximum length to reduce the chance of injection.

Generated by OpenCVE AI on March 26, 2026 at 23:24 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 vulnerability was identified in code-projects Online Food Ordering System 1.0. Affected by this vulnerability is an unknown functionality of the file /dbfood/contact.php. The manipulation of the argument Name leads to cross site scripting. It is possible to initiate the attack remotely. The exploit is publicly available and might be used.
Title code-projects Online Food Ordering System contact.php cross site scripting
Weaknesses CWE-79
CWE-94
References
Metrics cvssV2_0

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

cvssV3_0

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

cvssV3_1

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

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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, 8:26 PM
Reserved
Mar 26, 2026, 2:31 PM
Status
Deferred
Published
Mar 26, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:57 AM