{"id":"GHSA-p2wg-8h29-874v","aliases":["CVE-2025-31695","DRUPAL-CONTRIB-2025-024"],"title":"DRUPAL-CONTRIB-2025-024","description":"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.","severity":"medium","score":6.1,"published":"2025-03-19T18:52:53.000Z","modified":"2026-09-10T03:45:55.823Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"drupal/link_field_display_mode_formatter","ranges":[{"events":[{"introduced":"0"},{"fixed":"1.6.0"}],"type":"ECOSYSTEM"}],"versions":[],"fixed":["1.6.0"]},{"ecosystem":"Packagist:https://packages.drupal.org/8","name":"drupal/link_field_display_mode_formatter","ranges":[{"events":[{"introduced":"0"},{"fixed":"1.6.0"}],"type":"ECOSYSTEM","database_specific":{"constraint":"<1.6.0"}}],"versions":[],"fixed":["1.6.0"]}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-31695","https://git.drupalcode.org/project/link_field_display_mode_formatter","https://www.drupal.org/sa-contrib-2025-024"],"sources":[{"name":"OSV","id":"GHSA-p2wg-8h29-874v","modified":"2025-12-10T23:41:13.495955Z","url":"https://osv.dev/vulnerability/GHSA-p2wg-8h29-874v"},{"name":"OSV","id":"DRUPAL-CONTRIB-2025-024","modified":"2026-09-10T03:45:55.823592895Z","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-024"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},{"source":"OSV","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U","score":1.3}]}