CVE-2025-12848

Source
https://cve.org/CVERecord?id=CVE-2025-12848
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-12848.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-12848
Published
2025-11-26T01:28:33.628Z
Modified
2026-08-12T03:51:45.284084742Z
Severity
  • 7.0 (High) CVSS_V4 - 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 CVSS Calculator
Summary
XSS vulnerability when rendering filename in Webform Multiform
Details

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.

Database specific
{
    "cna_assigner": "drupal",
    "cwe_ids": [
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12848.json"
}
References

Affected packages

Git / git.drupalcode.org/project/webform_multifile

Affected ranges

Type
GIT
Repo
https://git.drupalcode.org/project/webform_multifile
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
1c2fe6430e9f22f61b0f1e574ab4e1ff26386d82
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "7.x-1.0"
        },
        {
            "last_affected": "7.x-1.6"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

6.*
6.x-1.1
7.*
7.x-1.2
7.x-1.3
7.x-1.4
7.x-1.5
7.x-1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-12848.json"