Moderate severityNVD Advisory· Published May 27, 2014· Updated May 6, 2026
CVE-2014-0218
CVE-2014-0218
Description
Cross-site scripting (XSS) vulnerability in the URL downloader repository in repository/url/lib.php in Moodle through 2.3.11, 2.4.x before 2.4.10, 2.5.x before 2.5.6, and 2.6.x before 2.6.3 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
moodle/moodlePackagist | < 2.4.10 | 2.4.10 |
moodle/moodlePackagist | >= 2.5.0, < 2.5.6 | 2.5.6 |
moodle/moodlePackagist | >= 2.6.0, < 2.6.3 | 2.6.3 |
Patches
45c276a4c324bMDL-45332 repository_url: URL parameter is using PARAM_URL
1 file changed · +1 −1
repository/url/lib.php+1 −1 modified@@ -46,7 +46,7 @@ class repository_url extends repository { public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){ global $CFG; parent::__construct($repositoryid, $context, $options); - $this->file_url = optional_param('file', '', PARAM_RAW); + $this->file_url = optional_param('file', '', PARAM_URL); } public function check_login() {
729783c4ba97MDL-45332 repository_url: URL parameter is using PARAM_URL
1 file changed · +1 −1
repository/url/lib.php+1 −1 modified@@ -46,7 +46,7 @@ class repository_url extends repository { public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){ global $CFG; parent::__construct($repositoryid, $context, $options); - $this->file_url = optional_param('file', '', PARAM_RAW); + $this->file_url = optional_param('file', '', PARAM_URL); } public function check_login() {
b8a6f7d19d62MDL-45332 repository_url: URL parameter is using PARAM_URL
1 file changed · +1 −1
repository/url/lib.php+1 −1 modified@@ -46,7 +46,7 @@ class repository_url extends repository { public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){ global $CFG; parent::__construct($repositoryid, $context, $options); - $this->file_url = optional_param('file', '', PARAM_RAW); + $this->file_url = optional_param('file', '', PARAM_URL); } public function check_login() {
c5e8a036c509MDL-45332 repository_url: URL parameter is using PARAM_URL
1 file changed · +1 −1
repository/url/lib.php+1 −1 modified@@ -46,7 +46,7 @@ class repository_url extends repository { public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){ global $CFG; parent::__construct($repositoryid, $context, $options); - $this->file_url = optional_param('file', '', PARAM_RAW); + $this->file_url = optional_param('file', '', PARAM_URL); } public function check_login() {
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
10- github.com/advisories/GHSA-ch68-5r37-p7c3ghsaADVISORY
- moodle.org/mod/forum/discuss.phpnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2014-0218ghsaADVISORY
- openwall.com/lists/oss-security/2014/05/19/1nvdWEB
- github.com/moodle/moodle/commit/5c276a4c324b5137064496d6dd68e71476015fcdghsaWEB
- github.com/moodle/moodle/commit/729783c4ba971413198f30784b48e3f2107a8da6ghsaWEB
- github.com/moodle/moodle/commit/b8a6f7d19d623bcf992d8ecda94324100bc50e9dghsaWEB
- github.com/moodle/moodle/commit/c5e8a036c509197bb2927f47c0579992be479f35ghsaWEB
- web.archive.org/web/20141224120458/http://www.securityfocus.com/bid/67479ghsaWEB
- www.securityfocus.com/bid/67479nvd
News mentions
0No linked articles in our index yet.