CWE
94
Advisory Published
Updated

CVE-2019-14827: Code Injection

First published: Mon May 17 2021(Updated: )

A vulnerability was found in Moodle where javaScript injection was possible in some Mustache templates via recursive rendering from contexts. Mustache helper tags that were included in template contexts were not being escaped before that context was injected into another Mustache helper, which could result in script injection in some templates. This affects versions 3.7 to 3.7.1, 3.6 to 3.6.5, 3.5 to 3.5.7 and earlier unsupported versions.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Moodle>=3.5.0<=3.5.7
Moodle>=3.6.0<=3.6.5
Moodle>=3.7.0<=3.7.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2019-14827?

    CVE-2019-14827 has been categorized as a medium severity vulnerability due to the potential for JavaScript injection through Mustache templates.

  • How do I fix CVE-2019-14827?

    To fix CVE-2019-14827, upgrade Moodle to versions 3.5.8, 3.6.6, or 3.7.2 or later.

  • What software versions are affected by CVE-2019-14827?

    CVE-2019-14827 affects Moodle versions 3.5.0 to 3.5.7, 3.6.0 to 3.6.5, and 3.7.0 to 3.7.1.

  • What type of attack does CVE-2019-14827 enable?

    CVE-2019-14827 enables attackers to perform JavaScript injection attacks via recursive rendering in Mustache templates.

  • Is user input safe from CVE-2019-14827?

    User input is not safe from CVE-2019-14827, as the vulnerability allows for injection when contexts are improperly escaped.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203