Description
A vulnerability was detected in SourceCodester Modern Image Gallery App 1.0. Affected by this vulnerability is an unknown functionality of the file upload.php. The manipulation of the argument filename results in cross site scripting. The attack may be launched remotely. The exploit is now public and may be used.
Published: 2026-02-24
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross Site Scripting
Action: Patch
AI Analysis

Impact

The vulnerability arises from the file upload.php page when an attacker manipulates the 'filename' argument. This causes the application to store a filename that contains malicious script code, which is later executed in the browsers of users who view the uploaded image. The result is a classic reflected or stored cross‑site scripting (CWE‑79) that can allow attackers to run arbitrary JavaScript in the victim's context, potentially stealing session cookies, altering page content, or redirecting users to malicious sites. Because the payload is delivered via the filename field, it can be scoped to any user who can view the gallery, making the impact wide.

Affected Systems

The affected product is the SourceCodester Modern Image Gallery App version 1.0. No other versions are listed, so only this specific build is confirmed vulnerable. The issue involves the upload functionality, and developers or administrators who run this application should verify if their instance matches the affected version.

Risk and Exploitability

According to the CVSS base score of 5.3, the vulnerability has moderate severity. The EPSS probability is below 1 %, indicating that exploitation is unlikely at present, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is remote: an attacker only needs to craft a malicious filename when uploading an image file, which is typically accessible from the public web interface. No additional credentials or local privileges are required, thus an unauthenticated attacker could exploit the flaw by submitting a crafted upload and then luring users to view the gallery.

Generated by OpenCVE AI on April 17, 2026 at 15:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update to the latest release of the Modern Image Gallery App if the vendor has issued a patch that sanitizes the filename input and escapes output.
  • Ensure the upload handler validates the filename and removes any characters that can break attribute boundaries or contain script tags, and rejects or normalizes script payloads.
  • Implement output encoding for all data displayed from filenames or file metadata to prevent script execution (e.g., use htmlspecialchars with ENT_QUOTES or a templating engine that auto‑escapes).
  • Place a web application firewall in front of the application to block common XSS payloads and enforce a stricter content‑security‑policy header for the gallery pages.

Generated by OpenCVE AI on April 17, 2026 at 15:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 24 Feb 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Remyandrade
Remyandrade modern Image Gallery App
CPEs cpe:2.3:a:remyandrade:modern_image_gallery_app:1.0:*:*:*:*:*:*:*
Vendors & Products Remyandrade
Remyandrade modern Image Gallery App

Tue, 24 Feb 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 24 Feb 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester modern Image Gallery App
Vendors & Products Sourcecodester
Sourcecodester modern Image Gallery App

Tue, 24 Feb 2026 05:15:00 +0000

Type Values Removed Values Added
Description A vulnerability was detected in SourceCodester Modern Image Gallery App 1.0. Affected by this vulnerability is an unknown functionality of the file upload.php. The manipulation of the argument filename results in cross site scripting. The attack may be launched remotely. The exploit is now public and may be used.
Title SourceCodester Modern Image Gallery App upload.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'}


Subscriptions

Remyandrade Modern Image Gallery App
Sourcecodester Modern Image Gallery App
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-02-24T17:13:37.627Z

Reserved: 2026-02-23T19:05:58.784Z

Link: CVE-2026-3070

cve-icon Vulnrichment

Updated: 2026-02-24T17:11:44.316Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-24T05:17:23.430

Modified: 2026-04-29T01:00:01.613

Link: CVE-2026-3070

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T16:00:11Z

Weaknesses