CVE-2026-142416: XSS

Published Dec 2, 2026
·
Updated

The File Download module provides a custom field formatter that allows users to download file and image entities directly. It also provides an optional sub-module to count and display file downloads in Views (similar to how the core statistics module tracks content views).

The module does not properly sanitize filenames, allowing stored cross-site scripting (XSS) attacks. An attacker with file upload permissions could upload a file with a malicious filename, which would then execute in the browser of any user viewing the field.

Affected Software

1 affected componentFixes available
composer/drupal/file_download<2.0.2
2.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/file_download to a version that resolves this vulnerability.

    Fixed in 2.0.2

Event History

Dec 2, 2026
Advisory Published
via OSV·05:46 PM
Data Sourced
via OSV·05:46 PM
DescriptionAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs permission to upload files. They can supply a file or image with a malicious filename that is later rendered by the module's custom field formatter.

2

Who is at risk from a malicious upload?

Any user who views the affected field in a browser may trigger the stored XSS payload. This includes users who did not upload the file themselves.

3

Does the download-counting sub-module need to be enabled for this to matter?

The issue is described in the custom field formatter that renders file and image entities for download. The download-counting sub-module is described as optional, but the provided information does not indicate that it is required for exploitation.

4

How can I identify potentially affected content?

Review file and image entities uploaded by users with file-upload permissions, especially filenames containing markup or script-like content. Such filenames are relevant when they are displayed through the module's custom field formatter.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203