Frappe LMS CVE-2025-67730
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged LMS user
-
DeliveryInject JS payload into Job/Course/Batch description
-
ExploitStore unsanitized HTML in database
-
ExecutionVictim opens affected record
-
PersistScript executes in victim session
-
ImpactSteal session/perform actions as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated account with permission to create or edit a Job, Course, or Batch record (PR:L), and the malicious HTML/JavaScript must be placed specifically in the description fields of those forms (Batch description and batch_details, Course description, Job description) in Frappe LMS versions prior to 2.42.0. The payload only executes when a second user (e.g. an instructor, administrator, or learner) subsequently views the affected record, so successful attack depends on victim interaction (UI:P) and on the attacker already holding valid LMS credentials. Limiting factors: the need for an authenticated foothold, the requirement that a victim open the poisoned content, and that upgrading to 2.42.0 (which applies DOMPurify allowlist sanitization) fully removes the condition. |
| Impact | This is a stored (persistent) cross-site scripting flaw (CWE-79) in Frappe LMS, rated medium severity (CVSS 5.1, CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P with VC:L/VI:L impacts). The signals are internally consistent and point to a genuine-but-moderate issue rather than a top-priority emergency. The CVSS vector requires an authenticated user (PR:L) to inject the payload and passive victim interaction (UI:P) to trigger it, which caps the real impact at low confidentiality/integrity and no availability impact. EPSS agrees it is low priority: 0.17% probability at the 6th percentile, indicating no mass-exploitation pressure. It is NOT on CISA KEV and no public exploit code is referenced, so exploitation status is 'no public exploit identified at time of analysis.' The source-code diff strongly corroborates the vulnerability class and fix: the patch introduces a DOMPurify-based sanitizeHTML() allowlist applied to Job/Course/Batch description fields (plus assignment questions and profile bios), confirming unsanitized HTML/JS storage before 2.42.0. No signals conflict here - low EPSS, no KEV, and a medium CVSS all align. The main residual risk is privilege escalation or session/account impact against users (often instructors/admins) who view attacker-controlled content. |
| Exploit ScenarioDerived | An authenticated user with permission to create or edit a Job, Course, or Batch enters a malicious payload (e.g. an <img onerror> or <script>-equivalent) into a description field, which is stored without sanitization. When an administrator, instructor, or another student later views that record in their browser, the script executes in their session context, enabling cookie/token theft, actions on their behalf, or UI manipulation. No public proof-of-concept was identified, and exploitation requires a victim to view the poisoned content (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Stored cross-site scripting in Frappe LMS versions prior to 2.42.0 allows authenticated users with permission to create or edit Job, Course, or Batch records to inject malicious HTML and JavaScript into description fields, which then executes in the browser of any user who views the poisoned record. Exploitation requires a valid LMS account and victim interaction (the victim must open the affected record), and the issue is fixed in version 2.42.0. EPSS is low at 0.17% (6th percentile) and no public exploit code or active exploitation has been identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade Frappe LMS to version 2.42.0 or later, which applies DOMPurify allowlist sanitization to the affected description fields via the new sanitizeHTML utility (commit 0877e32e1bfe64831b875707241de1c449cda45c). The security advisory GHSA-jjc4-j3hw-33h2 should be consulted for the official guidance. If immediate upgrade is not possible, restrict the ability to create or edit Job, Course, and Batch records to trusted users only, since exploitation requires an authenticated account with those permissions; this reduces the attack surface but may limit legitimate LMS content management. Additionally, review existing Job/Course/Batch descriptions for injected scripts and clear or re-sanitize them, and consider enabling a strict Content Security Policy to limit script execution in the LMS origin, though CSP may break legitimate rich-text features. No other workarounds are documented in the available references.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a persistent (stored) cross-site scripting vulnerability (CWE-79) rooted in insufficient output encoding and sanitization of user-supplied rich-text fields in the Frappe LMS single-page application, which is built with Vue.js and uses a DOMPurify-based editor stack. The CPE cpe:2.3:a:frappe:learning:*:*:*:*:*:*:*:* identifies all Frappe LMS releases before 2.42.0 as affected. Before the fix, description fields in the Job, Course, and Batch forms (including batch.description and batch.batch_details) were stored and later rendered without an allowlist filter; the remediation commit 0877e32e1bfe64831b875707241de1c449cda45c introduces a centralized sanitizeHTML utility that runs DOMPurify with an explicit allowlist of tags (b, i, em, strong, a, p, br, ul, ol, li, img) and attributes (href, target, src), and applies it on submit in CourseForm.vue, JobForm.vue, and BatchForm.vue, and also hardens AssignmentForm.vue (question) and EditProfile.vue (bio). This is a classic CWE-79 case where untrusted input is persisted server-side and later interpreted as HTML/JavaScript in another user's session, requiring no server-side code execution but enabling session theft or defacement within the LMS origin.
Know when Learning gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Authenticated user injects stored payload (PR:L), a victim must view it (UI:R), and script execution in the victim's browser crosses a security scope (S:C) with limited C/I impact and no availability effect.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
Frappe Learning Management System (LMS) is a learning system that helps users structure their content. Versions prior to 2.42.0 allow authenticated users to add malicious HTML and JavaScript through description fields in the Job, Course and Batch forms. This issue is fixed in version 2.42.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
Cross-site Scripting (XSS) - Generic in GitHub repository frappe/lms prior to 5614a6203fb7d438be8e2b1e3030e4528d170ec4.
Frappe LMS is an open source learning management system. Rated critical severity (CVSS 9.8), this vulnerability is remot
Information disclosure vulnerability in Frappe LMS 2.35.0 allows remote unauthenticated attackers to access sensitive as
Cross-site scripting (XSS) in Frappe LMS 2.35.0 Course Handler allows authenticated users with high privileges to inject
Frappe LMS versions 2.34.x and 2.35.0 contain a cross-site scripting (XSS) vulnerability in an incomplete fix for CVE-20
Frappe Learning Management System versions 2.44.0 and earlier contain a stored cross-site scripting (XSS) vulnerability
Frappe LMS 2.35.0 contains improper access controls in the Unpublished Course Handler component at the /courses/ endpoin
Frappe Learning Management System versions prior to 2.44.0 contain an information disclosure vulnerability that allows u
Frappe Learning Management System versions 2.44.0 and below allow unauthenticated attackers to retrieve sensitive detail
Stored cross-site scripting in Frappe Learning Management System (LMS) versions prior to 2.42.0 allows an authenticated
Frappe Learning is a learning system that helps users structure their content. Rated medium severity (CVSS 4.6), this vu
Frappe Learning (frappe/lms) versions prior to 2.38.0 stored student-uploaded assignment attachments as public files, so
NVD
CVE.org
EPSS
GitHub
Exploit-DB