# DRUPAL-CONTRIB-2025-057: The Advanced File Destination module enhances file upload management in Drupal by allowing users to choose and create custom directories during file uploads.

> The Advanced File Destination Drupal module has multiple undisclosed vulnerabilities and has lost security coverage due to maintainer non-compliance.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not stated
- **Attackable:** Not stated
- **Victim action needed:** Not stated
- **Fix available:** No
- **Published:** 14 May 2025

## What is DRUPAL-CONTRIB-2025-057?

DRUPAL-CONTRIB-2025-057 is a vulnerability in drupal/advanced_file_destination, published on 14 May 2025. 

### Official description

The Advanced File Destination module enhances file upload management in Drupal by allowing users to choose and create custom directories during file uploads.

The module has multiple vulnerabilities that were reported through the Drupal Security Team's coordinated vulnerability process. The project maintainer did not follow the terms and conditions for hosting projects on drupal.org that are opted into security coverage, so the module is losing its security coverage. The private issues may be made public at the discretion of the reporter and maintainer.

## Which versions are affected by DRUPAL-CONTRIB-2025-057?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `drupal/advanced_file_destination` | Packagist:https://packages.drupal.org/8 | All versions | None |

## How do I fix DRUPAL-CONTRIB-2025-057?

No fix has been published for DRUPAL-CONTRIB-2025-057 yet. Limit exposure of the affected software until one is available.

## Is DRUPAL-CONTRIB-2025-057 being exploited?

There is no known exploitation of DRUPAL-CONTRIB-2025-057 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for DRUPAL-CONTRIB-2025-057 and fix it if it is affected.

What it is: DRUPAL-CONTRIB-2025-057 is a vulnerability in drupal/advanced_file_destination, published on 14 May 2025. 
Exploitation: There is no known exploitation of DRUPAL-CONTRIB-2025-057 in the wild and no public exploit code.

Affected product: drupal/advanced_file_destination. 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/DRUPAL-CONTRIB-2025-057/ (Markdown: https://insights.sbomify.com/DRUPAL-CONTRIB-2025-057/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-057

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