Cross-site scripting via unescaped recursive Mustache helpers
Published May 17, 2021 · Updated Aug 5, 2024
Cross-site scripting in Moodle LMS 3.7 through 3.7.1, 3.6 through 3.6.5, and 3.5 through 3.5.7 allows remote attackers to inject JavaScript. Mustache helper tags carried in template contexts are rendered recursively into another helper without escaping the nested context. A victim must view an affected rendered template; execution occurs in that user’s browser and can read or alter data available to the session.
Summary
What happened
Cross-site scripting in Moodle LMS 3.7 through 3.7.1, 3.6 through 3.6.5, and 3.5 through 3.5.7 allows remote attackers to inject JavaScript. Mustache helper tags carried in template contexts are rendered recursively into another helper without escaping the nested context. A victim must view an affected rendered template; execution occurs in that user’s browser and can read or alter data available to the session.
The record
- CVE
- CVE-2019-14827
- Published
- May 17, 2021
- Updated
- Aug 5, 2024
- Vendor
- Moodle
- Product
- Moodle LMS
- Classifications
- CWE-94, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 17, 2021CVE publishedPublication date reported by the CVE source.
- Aug 5, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.7 to 3.7.1, 3.6 to 3.6.5, 3.5 to 3.5.7 and earlier unsupported versions
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo