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.
Severity (CVSS)
| Base score | 5.1 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-79 — Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| jcrodriguez-dis | moodle-mod_vpl | 0 to <5.0.0 [affected] |
References
- https://github.com/jcrodriguez-dis/moodle-mod_vpl/commit/5dd7fe00df2816b692f8ea262c6fa8cdee0b26b7 (patch)
- https://github.com/jcrodriguez-dis/moodle-mod_vpl/releases/tag/V5.0.0 (release-notes)
- https://github.com/jcrodriguez-dis/moodle-mod_vpl/blob/V4.5.0/similarity/diff.class.php#L412-L419 (technical-description)
- https://www.vulncheck.com/advisories/vpl-for-moodle-before-5.0.0-reflected-xss-via-similarity-diff-php-filename (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 21 Oct 2026 07:04 UTC.