SecurityContext

CVE-2021-20280: Moodle - Stored XSS & Server Side Request Forgery

  • Cve: CVE-2021-20280
  • Name: Moodle - Stored XSS & Server Side Request Forgery
  • 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.
  • Impact: Attackers can execute scripts in user browsers or access internal network resources, leading to data theft or session hijacking.
  • Remediation: Update to Moodle 3.10.2, 3.9.5, 3.8.8, 3.5.17 or later versions with sanitization fixes.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec, server_side_request_forgery
  • Requirement type: user_interaction
  • Requirements: Attacker needs to submit malicious feedback
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.01271
  • Epss percentile: 0.70579
  • Assignee: [email protected]
  • Published at: 2021-03-15T22:15:13Z
  • Age in days: 2080
  • Modified at: 2026-06-17T03:33:35Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 6
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-20280
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
http://packetstormsecurity.com/files/164817/Moodle-Cross-Site-Scripting-Server-Side-Request-Forgery.htmlnvd2021-03-15

References

Same in every row:

  • Source: nvd
UrlTags
https://moodle.org/mod/forum/discuss.php?d=419651Patch, Vendor Advisory
http://packetstormsecurity.com/files/164817/Moodle-Cross-Site-Scripting-Server-Side-Request-Forgery.htmlExploit, Third Party Advisory, VDB Entry
https://bugzilla.redhat.com/show_bug.cgi?id=1939037Issue Tracking, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AFSNJ7XHVTC52RSRX2GBQFF3VEEAY2MS/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FGOMHMYM3WICJ6D6U22Z6LPJGT5A6MZM/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UFH5DDMU5TZ3JT4Q52WMRAHACA5MHIMT/

Products

ProductAffectedPlatform boundSourcesUrl
moodle:moodle>= 3.10.0, < 3.10.2; >= 3.9.0, < 3.9.5; >= 3.8.0, < 3.8.8; >= 3.5.0, < 3.5.17nonvd/v1/products/moodle/moodle
fedoraproject:fedora= 34, = 33, = 32nonvd/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
moodle/moodlecommit, fix, packageyes/v1/repositories/moodle/moodle

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-03-15
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 62525
  • Checked, none or zero: known exploited, known exploited by, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports