CVE-2025-12848 XSS vulnerability when rendering filename in Webform Multiform
An unauthenticated attacker can execute arbitrary scripts in a victim's browser by uploading a file with a malicious filename to a Drupal Webform node with disabled file type validation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-12848?
CVE-2025-12848 is a high-severity cross-site scripting vulnerability in Drupal, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2025-12848?
It affects 1 product.
Products include Webform Multiple File Upload Project Webform Multiple File Upload.
How do I fix CVE-2025-12848?
Apply the vendor's patch.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-12848 being exploited?
There is no known exploitation of CVE-2025-12848 in the wild and no public exploit code.
Other vulnerabilities in Drupal
Sources
Also known as CLSA-2026-1789642476, GHSA-5q8c-r7p8-3p9v.