Date: 
2025-March-19
Vulnerability: 
Cross site scripting
Affected versions: 
<1.0.1
CVE IDs: 
CVE-2025-31696
Description: 

This module can be used to render Open API Documentation using the RapiDoc library. 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 RapiDoc OAS Field Formatter module for Drupal 10, upgrade to RapiDoc OAS Field Formatter 1.0.1
  • Upgrade to Drupal 10.3.14, 10.4.5, 11.0.13, or 11.1.5
Reported By: 
Fixed By: 
Coordinated By: