{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-20280","id":"CVE-2021-20280","title":"Cross-site scripting (XSS) and Server side request forgery (SSRF) in moodle","description":"Text-based feedback answers required additional sanitizing to prevent stored XSS and blind SSRF risks in moodle before 3.10.2, 3.9.5, 3.8.8, 3.5.17.","descriptionLong":"Text-based feedback answers required additional sanitizing to prevent stored XSS and blind SSRF risks in moodle before 3.10.2, 3.9.5, 3.8.8, 3.5.17.","published":"2021-03-15T21:35:44.000Z","updated":"2026-10-24T10:30:34.555203844Z","reserved":"2020-12-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","rating":"low","source":"NVD"}],"rating":"medium","products":["moodle"],"affectedProducts":[{"vendor":"n/a","product":"moodle","defaultStatus":null,"versions":[{"status":"affected","version":"Fixed in 3.10.2, 3.9.5, 3.8.8, 3.5.17"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"moodle/moodle","purl":"pkg:composer/moodle/moodle","ranges":[">=3.10 <3.10.2",">=3.9 <3.9.5",">=3.8 <3.8.8",">=3.5 <3.5.17"],"fixed":["3.10.2","3.9.5","3.8.8","3.5.17"],"advisory":"GHSA-x2jp-hh65-4xvf"}],"cwes":["CWE-79"],"aliases":["BIT-moodle-2021-20280","GHSA-x2jp-hh65-4xvf"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1939037","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=419651","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AFSNJ7XHVTC52RSRX2GBQFF3VEEAY2MS/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UFH5DDMU5TZ3JT4Q52WMRAHACA5MHIMT/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FGOMHMYM3WICJ6D6U22Z6LPJGT5A6MZM/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://packetstormsecurity.com/files/164817/Moodle-Cross-Site-Scripting-Server-Side-Request-Forgery.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20280","tags":["advisory"]},{"url":"https://github.com/moodle/moodle/commit/a303eb9e9e387f95ea2a80cb1ce6c0b132ec1cc4","tags":["web"]},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AFSNJ7XHVTC52RSRX2GBQFF3VEEAY2MS","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGOMHMYM3WICJ6D6U22Z6LPJGT5A6MZM","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UFH5DDMU5TZ3JT4Q52WMRAHACA5MHIMT","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01271,"epssPercentile":0.70451,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-20280","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20280","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-20280","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-x2jp-hh65-4xvf","ok":true,"note":"GHSA-x2jp-hh65-4xvf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-20280","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}