# DRUPAL-CONTRIB-2026-362: The File Download module provides a custom field formatter that allows users to download file and image entities directly

- Database: Drupal
- Published: 2026-12-02
- Modified: 2026-12-02

## Tracked as

- [CVE-2026-142416](https://cve.now/CVE-2026-142416.md): Drupal File Download stored XSS in file delivery

## Affected versions

- drupal/file\_download (Packagist): fixed in 2.0.2

## Description

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.

## References

- https://www.drupal.org/sa-contrib-2026-362

Page: https://cve.now/DRUPAL-CONTRIB-2026-362

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
