{"id":"GHSA-86h4-w859-3hhv","aliases":["CVE-2025-31696","DRUPAL-CONTRIB-2025-025"],"title":"DRUPAL-CONTRIB-2025-025","description":"This module can be used to render Open API Documentation using the RapiDoc library. 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:23.000Z","modified":"2026-09-10T03:45:59.111Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"drupal/rapidoc_elements_field_formatter","ranges":[{"events":[{"introduced":"0"},{"fixed":"1.0.1"}],"type":"ECOSYSTEM"}],"versions":[],"fixed":["1.0.1"]},{"ecosystem":"Packagist:https://packages.drupal.org/8","name":"drupal/rapidoc_elements_field_formatter","ranges":[{"events":[{"introduced":"0"},{"fixed":"1.0.1"}],"type":"ECOSYSTEM","database_specific":{"constraint":"<1.0.1"}}],"versions":[],"fixed":["1.0.1"]}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-31696","https://git.drupalcode.org/project/rapidoc_elements_field_formatter","https://www.drupal.org/sa-contrib-2025-025"],"sources":[{"name":"OSV","id":"GHSA-86h4-w859-3hhv","modified":"2025-12-10T23:41:13.745891Z","url":"https://osv.dev/vulnerability/GHSA-86h4-w859-3hhv"},{"name":"OSV","id":"DRUPAL-CONTRIB-2025-025","modified":"2026-09-10T03:45:59.111371572Z","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-025"}],"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}]}