CVE-2026-113683

VPL for Moodle before 5.0.0 Reflected XSS via similarity/diff.php filename

Published Oct 20, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Jcrodriguez-dis
Jcrodriguez-dis moodle-mod Vpl
Vendors & Products Jcrodriguez-dis
Jcrodriguez-dis moodle-mod Vpl
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 23, 2026, 1:48 AM
Reserved
Oct 20, 2026, 2:51 PM
Status
Deferred
Published
Oct 20, 2026, 4:17 PM
Modified
Oct 23, 2026, 2:16 AM