Project: 
Date: 
2025-March-19
Vulnerability: 
Cross site scripting
Affected versions: 
<2.1.0
CVE IDs: 
CVE-2025-31697
Description: 

Formatter Suite provides a suite of field formatters to help present numbers, dates, times, text, links, entity references, files, and images. The module provides a custom formatter for link fields.

Drupal core does not sufficiently sanitize link element attributes, which can lead to a Cross Site Scripting vulnerability (XSS).

A separate fix for Drupal core has been released but this module requires a concurrent release to make use of the Drupal core fix.

This vulnerability is mitigated by that fact that an attacker would need to have the ability to add specific attributes to a Link field, which typically requires edit access via core web services, or a contrib or custom module.

Solution: 

Install the latest version:

  • If you use the Formatter Suite module for Drupal 10, upgrade to Formatter Suite 2.1.0
  • Upgrade to Drupal 10.3.14, 10.4.5, 11.0.13, or 11.1.5
Reported By: 
Fixed By: 
Coordinated By: