CVE-2022-45151: XSS

Published Nov 15, 2022
·
Updated

MSA-22-0031: Stored XSS possible in some "social" user profile fields

The "social" user profile field type performed insufficient escaping on some fields, resulting in a stored XSS risk.

Versions affected: 4.0 to 4.0.4 and 3.11 to 3.11.10 Versions fixed: 4.0.5 and 3.11.11

Other sources

The stored-XSS vulnerability was discovered in Moodle which exists due to insufficient sanitization of user-supplied data in several "social" user profile fields. An attacker could inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

GitHub

Affected Software

9 affected componentsFixes available
composer/moodle/moodle>=4.0<4.0.5
4.0.5
composer/moodle/moodle>=3.11<3.11.11
3.11.11
redhat/moodle<4.0.5
4.0.5
redhat/moodle<3.11.11
3.11.11
Moodle moodle>=3.11.0<3.11.11
Moodle moodle>=4.0.0<4.0.5
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Fedoraproject Fedora=37

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/moodle/moodle to a version that resolves this vulnerability.

    Fixed in 4.0.5
  2. Upgrade

    Upgrade composer/moodle/moodle to a version that resolves this vulnerability.

    Fixed in 3.11.11
  3. Upgrade

    Upgrade redhat/moodle to a version that resolves this vulnerability.

    Fixed in 4.0.5
  4. Upgrade

    Upgrade redhat/moodle to a version that resolves this vulnerability.

    Fixed in 3.11.11
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.0.5Patch MSA-22-0031
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.11.11Patch MSA-22-0031

Event History

Nov 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:30 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-45151?

CVE-2022-45151 is a stored-XSS vulnerability in Moodle.

2

What is the severity of CVE-2022-45151?

CVE-2022-45151 has a severity rating of 5.4 (medium).

3

How does CVE-2022-45151 affect Moodle?

CVE-2022-45151 affects Moodle versions 3.11.0 to 3.11.11, and 4.0.0 to 4.0.5.

4

How can an attacker exploit CVE-2022-45151?

An attacker can exploit CVE-2022-45151 by injecting and executing arbitrary HTML and script code in a user's browser.

5

How to fix CVE-2022-45151?

To fix CVE-2022-45151, update Moodle to version 3.11.11 or 4.0.5, depending on the affected version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203