{"id":"GHSA-5r66-vgc7-2mm3","aliases":["CVE-2025-31697","DRUPAL-CONTRIB-2025-026"],"title":"Drupal Formatter Suite Vulnerable to Cross-Site Scripting (XSS) via Link Element Attributes","titleSource":"OSV","descriptionSource":"OSV","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.\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:53:42.000Z","modified":"2026-09-10T03:45:41.419Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"drupal/formatter_suite","sources":[{"name":"OSV · GHSA-5r66-vgc7-2mm3","url":"https://osv.dev/vulnerability/GHSA-5r66-vgc7-2mm3"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"2.1.0"}],"type":"ECOSYSTEM"}],"versions":[],"fixed":["2.1.0"]},{"ecosystem":"Packagist:https://packages.drupal.org/8","name":"drupal/formatter_suite","sources":[{"name":"OSV · DRUPAL-CONTRIB-2025-026","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-026"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"2.1.0"}],"type":"ECOSYSTEM","database_specific":{"constraint":"<2.1.0"}}],"versions":[],"fixed":["2.1.0"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-31697","https://git.drupalcode.org/project/formatter_suite","https://git.drupalcode.org/project/formatter_suite/-/commit/58adb4168466b056e33fc4f356f43dd000e3765b","https://www.drupal.org/sa-contrib-2025-026"],"sources":[{"name":"OSV","id":"GHSA-5r66-vgc7-2mm3","modified":"2025-12-10T23:41:02.888139Z","url":"https://osv.dev/vulnerability/GHSA-5r66-vgc7-2mm3"},{"name":"OSV","id":"DRUPAL-CONTRIB-2025-026","modified":"2026-09-10T03:45:41.419082371Z","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-026"}],"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}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-29T00:35:31.531Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}