[1.0.x] Metadata Sanitizer

Created on 10 July 2025, 4 days ago

Metadata Sanitizer is a Drupal 10/11 module that automatically removes embedded metadata (such as EXIF, XMP, author, and device information) from uploaded files, including images and PDF documents. It is designed to help organizations meet privacy, compliance, and GDPR requirements by preventing the accidental disclosure of personal or sensitive information stored within file metadata.

https://www.drupal.org/project/metadata_sanitizer

📌 Task
Status

Needs review

Component

module

Created by

🇵🇹Portugal zarabatana

Live updates comments and jobs are added and updated live.
  • Security Advisory follow-up

    This tag is to be applied to issues where an official security release has been made, but the fix needs to be ported to the development version of the code.

Sign in to follow issues

Comments & Activities

  • Issue created by @zarabatana
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    Thank you for applying!

    Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.

    The important notes are the following.

    • If you have not done it yet, enable GitLab CI for the project, and fix what reported from the phpcs job. This help to fix most of what reviewers would report.
    • For the time this application is open, only your commits are allowed. No other people, including other maintainers/co-maintainers can make commits.
    • The purpose of this application is giving you a new drupal.org role that allows you to opt projects into security advisory coverage, either projects you already created, or projects you will create. The project status won't be changed by this application.
    • Nobody else will get the permission to opt projects into security advisory policy. If there are other maintainers/co-maintainers who will to get that permission, they need to apply with a different module.
    • We only accept an application per user. If you change your mind about the project to use for this application, or it is necessary to use a different project for the application, please update the issue summary with the link to the correct project and the issue title with the project name and the branch to review.

    To the reviewers

    Please read How to review security advisory coverage applications , Application workflow , What to cover in an application review , and Tools to use for reviews .

    The important notes are the following.

    • It is preferable to wait for a Code Review Administrator before commenting on newly created applications. Code Review Administrators will do some preliminary checks that are necessary before any change on the project files is suggested.
    • Reviewers should show the output of a CLI tool only once per application. The configuration used for these tools needs to be the same configuration used by GitLab CI, stored in the GitLab Templates repository.
    • It may be best to have the applicant fix things before further review.

    For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues .

  • 🇮🇳India vishal.kadam Mumbai

    1. FILE: src/Commands/MetadataSanitizerCommands.php

      /**
       * Removes metadata from files using exiftool.
       *
       * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
       * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
       */
      public function __construct(

    The documentation comment for constructors is not mandatory anymore, If it is given, the description must be “Constructs a new [class name] object”, where [class name] includes the class namespace.

    2. FILE: README.md

    The README file is missing the required section - Configuration.

    3. FILE: metadata_sanitizer.module

    /**
     * @file
     * Custom module to strip metadata from uploaded files using exiftool.
     */

    The usual description for a .module file is “Hook implementations for the [module name] module”, where [module name] is the module name given in the .info.yml file.

  • 🇵🇹Portugal zarabatana

    The requested changes have been committed to the 1.0.x branch.
    Please let me know if further updates are needed or if this is ready for the next step in the review process.

Production build 0.71.5 2024