CVE-2025-12848: XSS vulnerability when rendering filename in Webform Multiform
Webform Multiple File Upload module for Drupal 7.x contains a cross-site scripting (XSS) vulnerability in the file name renderer. An unauthenticated attacker can exploit this vulnerability by uploading a file with a malicious filename containing JavaScript code (e.g., "<img src=1 onerror=alert(document.domain)>") to a Webform node with a Multifile field where file type validation is disabled. This allows the execution of arbitrary scripts in the context of the victim's browser. The issue is present in a third-party library and has been addressed in a patch available at https://github.com/fyneworks/multifile/pull/44 . Users are advised to apply the provided patch or update to a fixed version of the module.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-12848?
CVE-2025-12848 is classified as a high-severity vulnerability due to its potential to allow cross-site scripting (XSS) attacks.
How do I fix CVE-2025-12848?
To fix CVE-2025-12848, update the Webform Multiple File Upload module to the latest patched version provided by Drupal.
Who can exploit CVE-2025-12848?
CVE-2025-12848 can be exploited by unauthenticated attackers who can upload files with malicious filenames.
What impact does CVE-2025-12848 have on my Drupal site?
The impact of CVE-2025-12848 includes the potential for attackers to execute arbitrary JavaScript in the context of users visiting the site.
Is there a workaround for CVE-2025-12848?
There are no official workarounds for CVE-2025-12848; the best course of action is to apply the available patch or update.