# 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.

- **Severity:** High 7.0 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/S:N/R:U/V:D/RE:L/U:Amber`)
- **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:** Yes
- **Published:** 26 Nov 2025
- **Updated:** 26 Mar 2026
- **Also known as:** CLSA-2026-1789642476, GHSA-5q8c-r7p8-3p9v

## 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 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2025-12848?

It affects 1 product.


Products: Webform Multiple File Upload Project Webform Multiple File Upload.

## How do I fix CVE-2025-12848?

Apply the vendor's patch.

## 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

- [CVE-2015-4379](https://insights.sbomify.com/CVE-2015-4379/): Cross-site request forgery in n/a (medium 6.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-12848 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2025-12848 in the wild and no public exploit code.

Affected product: Drupal. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-12848/ (Markdown: https://insights.sbomify.com/CVE-2025-12848/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-12848
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-12848
- OSV: https://osv.dev/vulnerability/CVE-2025-12848

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-12848/
Summaries are generated and may contain mistakes; the official description above is the record.
