Description
VPL (Virtual Programming Lab) for Moodle before 5.0.0 contains a reflected cross-site scripting vulnerability that allows remote attackers to inject script via unencoded filename1/filename2 parameters in similarity/diff.php. Attackers can craft a diff.php link with a JavaScript payload that runs when a user holding mod/vpl:similarity opens it, performing actions or disclosing data under their session.
Published: 2026-10-20
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote Script Injection via Unencoded Filenames
Action: Apply Patch
AI Analysis

Impact

VPL (Virtual Programming Lab) for Moodle versions before 5.0.0 includes a reflected cross‑site scripting flaw. An attacker can embed a malicious JavaScript payload into the unvalidated filename parameters used by similarity/diff.php. When a legitimate user with the appropriate mod/vpl:similarity permission opens the crafted link, the script executes within the user’s browser context. This can lead to session hijacking, theft of sensitive data, or arbitrary actions performed as that user. The weakness is an input validation issue identified by CWE‑79.

Affected Systems

The vulnerability affects the VPL module for Moodle (mod_vpl) by jcrodriguez-dis. Any installation of this plugin older than version 5.0.0 is potentially impacted. The affected code resides in the similarity/diff.php component of the plugin.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity, while no EPSS score is available. This vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a crafted URL accessed by a victim user who has permission to view diff reports. Successful exploitation requires that the attacker persuades a user to visit a link containing the malicious payload; if achieved, the attacker can run arbitrary JavaScript under the victim’s session. Even though the score is moderate, the practical impact on confidentiality and integrity remains significant due to the potential for account compromise and unauthorized actions.

Generated by OpenCVE AI on October 20, 2026 at 17:32 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the VPL module to version 5.0.0 or later, which removes the reflected XSS flaw.
  • Restrict access to similarity/diff.php by setting appropriate role permissions so that only trusted users can view diff reports.
  • Validate and encode all filename parameters in similarity/diff.php before rendering to the browser, ensuring that any special characters are properly sanitized to prevent script execution.

Generated by OpenCVE AI on October 20, 2026 at 17:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 20 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Jcrodriguez-dis
Jcrodriguez-dis moodle-mod Vpl
Vendors & Products Jcrodriguez-dis
Jcrodriguez-dis moodle-mod Vpl

Tue, 20 Oct 2026 15:45:00 +0000

Type Values Removed Values Added
Description VPL (Virtual Programming Lab) for Moodle before 5.0.0 contains a reflected cross-site scripting vulnerability that allows remote attackers to inject script via unencoded filename1/filename2 parameters in similarity/diff.php. Attackers can craft a diff.php link with a JavaScript payload that runs when a user holding mod/vpl:similarity opens it, performing actions or disclosing data under their session.
Title VPL for Moodle before 5.0.0 Reflected XSS via similarity/diff.php filename
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Jcrodriguez-dis Moodle-mod Vpl
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-23T01:48:46.789Z

Reserved: 2026-10-20T14:51:03.227Z

Link: CVE-2026-113683

cve-icon Vulnrichment

Updated: 2026-10-23T01:48:43.205Z

cve-icon NVD

Status : Deferred

Published: 2026-10-20T16:17:13.360

Modified: 2026-10-23T02:16:56.707

Link: CVE-2026-113683

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T20:29:48Z

Weaknesses
  • CWE-79

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