CVE-2025-7062: Stored Cross-Site Scripting via file upload in H5P module (h5p-nodejs-library) of Lumi Education
A stored cross-site scripting (XSS) vulnerability has been identified in the H5P module h5p-nodejs-library by Lumi Education UG in versions up to and including 10.0.4. The library allows users to upload H5P content that contains malicious JavaScript. This code is then executed in the browsers of other users who view the affected H5P content.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
h5p-nodejs-libraryto a version that resolves this vulnerability.Fixed in 10.0.4 - Configuration
Enable the library's SVG file sanitization (uses DOMPurify) so uploaded SVGs have malicious script content removed. This is specifically referenced for SVG uploads.
h5p-nodejs-library (H5P SVG sanitization) SVG file sanitization (DOMPurify-based) = enabled - Compensating control
Do not rely on extension-based filtering alone. Validate and sanitize uploaded files based on their actual content (not only the filename extension) until a complete fix is available.
Event History
Frequently Asked Questions
Who is exposed to this vulnerability?
Users who view H5P content uploaded by another user are exposed, because malicious JavaScript embedded in uploaded H5P content executes in viewers' browsers.
What does an attacker need to exploit it?
The attacker needs the ability to upload H5P content to an application using the affected library. They can include malicious JavaScript in that uploaded content.
Which versions are affected?
Versions of h5p-nodejs-library up to and including 10.0.4 are affected.