All vulnerabilities

Servers and applications

CVE-2011-4591

Cross-site scripting (XSS) vulnerability in the print_object function in lib/datalib.php in Moodle 2.0.x before 2.0.6 and 2.1.x before 2.1.3, when a developer debugging script is enabled, allows remote attackers to inject arbitrary web script or HTML via vectors involving object states.

Severity
Medium 4.3
Published
20 Jul 2012
Last changed
16 Jun 2026
Added to UpHeron
1 Nov 2026
Exploit chance
1.8% in the next 30 daysHigher than 79% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed
Attacker can
Change some data
CVSS vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Sources
NVD

Affected software

SoftwareAffected versions
MoodleServers and applications · cpe:a:moodle:moodle
  • Version 2.1.2
  • Version 2.1.1
  • Version 2.1.0
  • Version 2.0.5
All 9 release lines
  • Version 2.0.0
  • Version 2.0.1
  • Version 2.0.2
  • Version 2.0.3
  • Version 2.0.4
  • Version 2.0.5
  • Version 2.1.0
  • Version 2.1.1
  • Version 2.1.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2011-4591
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2011-4591