{"id":"CVE-2025-12848","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\nfilename containing JavaScript code (e.g., \"\u003cimg src=1 onerror=alert(document.domain)\u003e\") to a Webform node with a Multifile field where file type validation is disabled. This allows the execution of arbitrary scripts\nin the context of the victim's browser.\n \nThe 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.","modified":"2026-08-12T03:51:45.284084742Z","published":"2025-11-26T01:28:33.628Z","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":[{"type":"WEB","url":"https://git.drupalcode.org/project/webform_multifile"},{"type":"WEB","url":"https://www.drupal.org/project/webform_multifile"},{"type":"ADVISORY","url":"https://d7es.tag1.com/security-advisories/webform-multiple-file-upload-critical-cross-site-scripting"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12848.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12848"},{"type":"ADVISORY","url":"https://www.d7security.org/security-advisories/D7SECURITY-SA-CONTRIB-2025-001/"},{"type":"ADVISORY","url":"https://www.herodevs.com/vulnerability-directory/cve-2025-12848"},{"type":"REPORT","url":"https://www.drupal.org/node/3105204"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.drupalcode.org/project/webform_multifile","events":[{"introduced":"0"},{"last_affected":"1c2fe6430e9f22f61b0f1e574ab4e1ff26386d82"}],"database_specific":{"extracted_events":[{"introduced":"7.x-1.0"},{"last_affected":"7.x-1.6"}],"source":"AFFECTED_FIELD"}}],"versions":["7.x-1.6","7.x-1.5","7.x-1.4","7.x-1.3","7.x-1.2","6.x-1.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-12848.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}