{"id":"DRUPAL-CONTRIB-2025-024","details":"This module adds a formatter for link fields that displays the current entity with another view mode inside the link.\n\nDrupal core does not sufficiently sanitize link element attributes, which can lead to a Cross Site Scripting vulnerability (XSS).\n\nA separate fix for Drupal core has been released but this module requires a concurrent release to make use of the Drupal core fix.\n\nThis 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.","aliases":["CVE-2025-31695","GHSA-p2wg-8h29-874v"],"modified":"2026-09-10T03:45:55.823592895Z","published":"2025-03-19T18:52:53Z","references":[{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2025-024"}],"affected":[{"package":{"name":"drupal/link_field_display_mode_formatter","ecosystem":"Packagist:https://packages.drupal.org/8","purl":"pkg:composer/drupal/link_field_display_mode_formatter?repository_url=https:%2F%2Fpackages.drupal.org%2F8"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0"}],"database_specific":{"constraint":"\u003c1.6.0"}}],"database_specific":{"source":"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/link_field_display_mode_formatter/DRUPAL-CONTRIB-2025-024.json","affected_versions":"\u003c1.6.0"}}],"schema_version":"1.9.0","credits":[{"name":"Daniel Wehner (dawehner)","contact":["https://www.drupal.org/u/dawehner"]},{"name":"Joseph Zhao (pandaski)","contact":["https://www.drupal.org/u/pandaski"]}]}