{"id":"CVE-2025-31697","aliases":["CVE-2025-31697","GHSA-5r66-vgc7-2mm3","DRUPAL-CONTRIB-2025-026"],"related":[],"kind":"vulnerability","state":"published","title":"Formatter Suite - Moderately critical - Cross site scripting - SA-CONTRIB-2025-026","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal Formatter Suite allows Cross-Site Scripting (XSS).This issue affects Formatter Suite: from 0.0.0 before 2.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal Formatter Suite allows Cross-Site Scripting (XSS).This issue affects Formatter Suite: from 0.0.0 before 2.1.0.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"drupal"},{"lang":"es","text":"La vulnerabilidad de neutralización incorrecta de la entrada durante la generación de páginas web ('Cross-site Scripting') en Drupal Formatter Suite permite Cross-Site Scripting (XSS). Este problema afecta a Formatter Suite: desde la versión 0.0.0 hasta la 2.1.0.","source":"nvd"}],"published":"2025-03-19T18:53:42.000Z","modified":"2026-09-10T03:45:41.419Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","fixed":"2.1.0","status":"affected"}],"vendor":"Drupal","product":"Formatter Suite","repo":"https://git.drupalcode.org/project/formatter_suite","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"Packagist","package":"drupal/formatter_suite","purl":"pkg:composer/drupal/formatter_suite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/formatter_suite","purl":"pkg:composer/drupal/formatter_suite?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"},{"ranges":[{"status":"affected","fixed":"2.1.0"}],"vendor":"formatter_suite_project","product":"formatter_suite","cpe":"cpe:2.3:a:formatter_suite_project:formatter_suite:*:*:*:*:*:drupal:*:*","source":"nvd"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2025-026","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","drupal","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31697","tags":["advisory"],"sources":["ghsa"]},{"url":"https://git.drupalcode.org/project/formatter_suite","tags":["package"],"sources":["ghsa"]},{"url":"https://git.drupalcode.org/project/formatter_suite/-/commit/58adb4168466b056e33fc4f356f43dd000e3765b","tags":["web"],"sources":["ghsa"]}],"credits":["Daniel Wehner (dawehner)","Joseph Zhao (pandaski)","Benji Fisher (benjifisher)","Bram Driesen (bramdriesen)","cyoun","Lee Rowlands (larowlan)","Greg Knaddison (greggles)","Drew Webber (mcdruid)","Juraj Nemec (poker10)"],"assigner":"drupal","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-01T18:21:23.139Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-31697","url":"https://www.cve.org/CVERecord?id=CVE-2025-31697","licence":"CVE Terms of Use","modified":"2025-04-29T15:16:16.212Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5r66-vgc7-2mm3","url":"https://github.com/advisories/GHSA-5r66-vgc7-2mm3","licence":"CC-BY-4.0","modified":"2025-12-10T23:41:02.888Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2025-026","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-026","licence":"MIT","modified":"2026-09-10T03:45:41.419Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-31697","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31697","licence":"Public domain","modified":"2026-06-17T09:10:48.090Z"}],"updatedAt":"2026-11-25T22:58:55.758Z","epss":{"score":0.00262,"percentile":0.19277,"date":"2026-12-01T12:00:22.000Z"}}