{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "3.8.8"
              },
              {
                "introduced": "3.9.0"
              },
              {
                "fixed": "3.9.11"
              },
              {
                "introduced": "3.10.0"
              },
              {
                "fixed": "3.10.8"
              },
              {
                "introduced": "3.11.0"
              },
              {
                "fixed": "3.11.4"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "6f7e3ca2f7e853a183559cfb6d10fa0eb8fc6877"
            },
            {
              "introduced": "500c131eb49771e36f68d151dfa37fef5a9bc2df"
            },
            {
              "fixed": "b02dd253b8e111cfa2c22883bb1d831c6f1f5f63"
            },
            {
              "introduced": "ec58cefefb2722f61f77c9a2b6a12d40a8c078a0"
            },
            {
              "fixed": "08534dff5030462233cede83148f8f6ba727f3a8"
            },
            {
              "introduced": "94f2d3fc4b974c5c7d500988c56b7ca15f58d7ec"
            },
            {
              "fixed": "e1ad263f906edb699a3f1dedaef90c90d8afe47d"
            }
          ],
          "repo": "https://github.com/moodle/moodle",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "unresolved_ranges": [
      {
        "cpes": [
          "cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:7.0:*:*:*:*:*:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "7.0"
          },
          {
            "last_affected": "7.0"
          }
        ],
        "source": "CPE_STRING",
        "vendor_product": "fedoraproject:extra_packages_for_enterprise_linux"
      },
      {
        "cpes": [
          "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
        ],
        "extracted_events": [
          {
            "introduced": "35"
          },
          {
            "last_affected": "35"
          }
        ],
        "source": "CPE_STRING",
        "vendor_product": "fedoraproject:fedora"
      }
    ]
  },
  "details": "A flaw was found in Moodle in versions 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions. A URL parameter in the filetype site administrator tool required extra sanitizing to prevent a reflected XSS risk.",
  "id": "CVE-2021-43558",
  "modified": "2026-07-08T05:36:33.230000161Z",
  "published": "2021-11-22T16:15:08.237Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2021515"
    },
    {
      "type": "FIX",
      "url": "https://moodle.org/mod/forum/discuss.php?d=429097"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}