ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2026-044

Details

The Examples for Developers project aims to provide high-quality, well-documented API examples for a broad range of Drupal core functionality.

The "Read from a file" feature implemented by the file\_example submodule can be used to expose any file that PHP can access. Therefore, the file\_example sub-module is being removed from Examples for Developers until a version demonstrating file security best practices can be added back in the future. Developers who based a new module on this example should review their code for an access bypass.

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/examples
All versions before 4.0.6 (fixed in 4.0.6)

References