CVE-2026-19230

SourceCodester Photo Share Website Comment Input Box ajax.php save_upload cross site scripting

Published Aug 7, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was identified in SourceCodester Photo Share Website 1.0. This affects an unknown part of the file /social/ajax.php?action=save_upload of the component Comment Input Box. The manipulation of the argument content leads to cross site scripting. The attack may be initiated remotely. The exploit is publicly available and might be used.

Analysis

AI-generated

Technical impact

A data‑validation flaw in the /social/ajax.php?action=save_upload endpoint of SourceCodester Photo Share Website allows an attacker to inject arbitrary script payloads through the content parameter. This flaw is a classic cross‑site scripting vulnerability (CWE‑79) and also involves unsafe code evaluation (CWE‑94). Because the content field is rendered client‑side without proper encoding, an attacker can execute scripts in the victim’s browser, potentially leading to data theft, session hijacking, or defacement.

Affected Systems

SourceCodester Photo Share Website version 1.0 is affected. The CVE references a comment input box component, and the known product is listed as SourceCodester:Photo Share Website. No sub‑versions are provided, so any instance running 1.0 could be vulnerable if the ajax.php file has not been patched.

Risk and Exploitability

The CVSS score of 5.1 indicates a medium risk. The exploit is publicly available, and the attack can be launched remotely through the web interface. EPSS is not available, and the vulnerability is not currently listed in the CISA KEV catalog. Based on the description, it is inferred that without access controls preventing injection, the flaw could be leveraged by any authenticated or unauthenticated user who can submit content, making the threat surface quite broad.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Deploy the latest version of SourceCodester Photo Share Website (v1.x+) that contains the fixed input validation for the content parameter.
  • Implement server‑side sanitization or output encoding for the content field to escape scripts before rendering.
  • Apply a browser‑side Content Security Policy restricting script execution origins.
  • Monitor logs for abnormal activity or attempted XSS attacks.

Generated by OpenCVE AI on August 7, 2026 at 19:50 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
Description A vulnerability was identified in SourceCodester Photo Share Website 1.0. This affects an unknown part of the file /social/ajax.php?action=save_upload of the component Comment Input Box. The manipulation of the argument content leads to cross site scripting. The attack may be initiated remotely. The exploit is publicly available and might be used.
Title SourceCodester Photo Share Website Comment Input Box ajax.php save_upload cross site scripting
First Time appeared Sourcecodester
Sourcecodester photo Share Website
Weaknesses CWE-79
CWE-94
CPEs cpe:2.3:a:sourcecodester:photo_share_website:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester photo Share Website
References
Metrics cvssV2_0

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

cvssV3_0

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

cvssV3_1

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

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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
Aug 7, 2026, 6:58 PM
Reserved
Aug 7, 2026, 10:40 AM
Status
Deferred
Published
Aug 7, 2026, 7:17 PM
Modified
Oct 23, 2026, 8:10 PM