6.1

CVE-2022-50943: Moodle LMS 4.0 Cross-Site Scripting via course search.php

Analyzed
AliasesUBUNTU-CVE-2022-50943
Published 10-05-2026Last modified 15-07-2026

Vulnerability summary

CVE-2022-50943 is a medium (CVSS 6.1) vulnerability in moodle. EPSS estimates a 1.10% chance of exploitation in the next 30 days, higher than 66.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.1/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.10%
0%100%
Low · +0.80 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1exploit-database

Timeline

  1. 10-05-2026
    PublishedVulnerability first disclosed.
  2. 15-07-2026
    Last modifiedVulnerability information updated.

Description

Moodle LMS 4.0 contains a cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts by submitting payloads through the search parameter. Attackers can inject JavaScript code via the search field in course/search.php to execute arbitrary scripts in users' browsers and steal session cookies.

CVSS metrics

6 scores · 3 sources · 2 versions

EPSS trend

Probability

1.10%

Chance of exploitation in the next 30 days

Percentile

67%

Versus all other CVEs

30-day change

Increase +0.80 pp

From 0.30% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • exploit-databasephpUnverified

    Moodle LMS 4.0 - 'search' Cross-Site Scripting (XSS)

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Moodle2 products
Ubuntu1 product
  • moodleAll versions (No fix recorded)

2 vendors · 3 products

References

6 links