Skip to main content

VPL for Moodle CVE-2026-113683

| EUVDEUVD-2026-105099 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-10-20 VulnCheck GHSA-2929-5xr7-ghmp
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft diff.php link with JS payload
  2. Delivery
    Send link to privileged grader
  3. Exploit
    Victim opens, parameter reflected unescaped
  4. Execution
    Script executes in victim session
  5. Impact
    Perform actions or steal session data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a victim user who holds the mod/vpl:similarity capability (normally a teacher or grader reviewing VPL submission similarity) to open an attacker-crafted similarity/diff.php link whose filename1/filename2 parameters carry a JavaScript payload; the flaw exists because $filename was concatenated into the HTML header without encoding (fixed via s() in V5.0.0). This affects default configurations of moodle-mod_vpl before 5.0.0 - no special server-side setting is needed. Exploitation is LIMITED by mandatory user interaction (the privileged user must click the link, UI:A) and by the requirement that the victim already be authenticated with the similarity capability; impact is confined to that user's session rather than the server, and patched installations (>=5.0.0) are not affected.

Impact

This is a genuine but moderate-severity issue, not a top-tier emergency. The CVSS 4.0 base score of 5.1 (Medium) reflects reflected XSS: the input vector states AV:N/AC:L/PR:N but UI:A (active user interaction required), with only subsequent-system low confidentiality/integrity impact (SC:L/SI:L) and no vulnerable-system impact - consistent with script execution confined to the victim's authenticated session rather than server compromise. No EPSS score, no CISA KEV listing, and no public POC were provided, so exploitation signals are weak: this maps to 'no public exploit identified at time of analysis.' The practical risk is bounded by two facts - the attacker must socially engineer a user who already holds the mod/vpl:similarity capability (typically a teacher/grader) into clicking a crafted link, and the payload runs only in that user's browser context. There is no signal conflict here; all signals consistently point to a targeted, interaction-dependent, medium-risk flaw rather than a wormable or mass-exploitable one. Key missing data: EPSS probability and independent exploit confirmation are absent, so real-world exploitation likelihood cannot be quantified beyond 'low/unknown.' The reporting by VulnCheck and the confirmed vendor patch raise confidence that the vulnerability itself is real.

Exploit ScenarioDerived

An attacker crafts a similarity/diff.php URL with a JavaScript payload embedded in the unencoded filename1/filename2 parameters and sends it to a Moodle instructor or grader. When that privileged user (holding mod/vpl:similarity) opens the link, the reflected payload executes in their session, letting the attacker perform actions or exfiltrate data under their identity. No public exploit code was identified in the provided data, though the patch diff publicly reveals the exact unescaped sink.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 20, 2026

Reflected cross-site scripting in the VPL (Virtual Programming Lab) activity module for Moodle before 5.0.0 lets an attacker execute arbitrary JavaScript inside the browser session of a teacher or grader who holds the mod/vpl:similarity capability. The payload is delivered through the unencoded filename1/filename2 parameters of similarity/diff.php, which the plugin concatenates into the page's HTML header without escaping, so the script runs when the privileged user opens a crafted link. Because exploitation requires that user interaction and confines impact to the victim's own session rather than the Moodle server, severity is moderate (CVSS 5.1); no public exploit code or confirmed active exploitation was identified at time of analysis, and the issue is fully resolved in the 5.0.0 release.

RemediationAI

Vendor-released patch: upgrade the VPL module for Moodle to 5.0.0 or later, available from the release tag https://github.com/jcrodriguez-dis/moodle-mod_vpl/releases/tag/V5.0.0, which incorporates the fix commit 5dd7fe00df2816b692f8ea262c6fa8cdee0b26b7 that applies s() to $filename in similarity/diff.class.php. If an immediate upgrade is not possible, the single-line change can be back-ported to the installed version (wrap $filename in s() inside vpl_get_similfile()), though this creates a locally maintained fork that must be reconciled at the next official release. As a compensating control, restrict the mod/vpl:similarity capability to a small, trusted set of teachers and graders - this shrinks the pool of sessions an attacker can target but does not remove the flaw and will block legitimate reviewers if applied too broadly. A web application firewall or reverse-proxy rule rejecting requests to /mod/vpl/similarity/diff.php whose filename1 or filename2 parameters contain angle brackets, quotes, or script keywords provides interim coverage, with the trade-off of possible false positives on legitimate filenames containing unusual characters and the ease of bypassing generic XSS signatures. Because exploitation is client-side and reflected, browser-side protections (Content-Security-Policy without unsafe-inline, and phishing awareness for privileged staff receiving unexpected diff.php links) reduce blast radius without addressing the root cause.

Affected VersionsENISA

moodle-mod_vpl 0 <5.0.0

Affected Packages

euvd moodle_mod_vpl fix: 5.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

VPL is a third-party Moodle activity module (CPE cpe:2.3:a:jcrodriguez-dis:moodle-mod_vpl) written in PHP that lets instructors run and grade programming assignments, including a similarity/diff view used to compare student submissions for plagiarism detection. The flaw is a classic reflected cross-site scripting (CWE-79): in similarity/diff.class.php, the static method vpl_get_similfile() built an HTML header by directly concatenating the caller-supplied $filename value into $htmlheader before echoing it to the page, while the adjacent username parameter was already constrained with optional_param(..., PARAM_TEXT). PARAM_TEXT performs input cleaning, not output encoding, so a filename1/filename2 value containing markup or a script payload survived into the rendered HTML. The upstream fix (commit 5dd7fe00df2816b692f8ea262c6fa8cdee0b26b7) wraps the value in Moodle's s() helper, which applies HTML entity encoding at the point of output - the correct remediation pattern for this vulnerability class. Exploitation is reflected rather than stored: the payload lives only in the crafted URL the victim is induced to open.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 6.1 MEDIUM

Attacker needs no privileges to craft the link (PR:N) but the privileged victim must click it (UI:R); reflected XSS crosses into the browser context (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
popular Moodle plugin, common in education but not universal
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy