{"id":"CVE-2025-31696","aliases":["CVE-2025-31696","GHSA-86h4-w859-3hhv","DRUPAL-CONTRIB-2025-025"],"related":[],"kind":"vulnerability","state":"published","title":"RapiDoc OAS Field Formatter - Moderately critical - Cross site scripting - SA-CONTRIB-2025-025","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal RapiDoc OAS Field Formatter allows Cross-Site Scripting (XSS).This issue affects RapiDoc OAS Field Formatter: from 0.0.0 before 1.0.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal RapiDoc OAS Field Formatter allows Cross-Site Scripting (XSS).This issue affects RapiDoc OAS Field Formatter: from 0.0.0 before 1.0.1.","source":"cvelist"},{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal RapiDoc OAS Field Formatter allows Cross-Site Scripting (XSS). This issue affects RapiDoc OAS Field Formatter: from 0.0.0 before 1.0.1.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"drupal"},{"lang":"es","text":"Vulnerabilidad de neutralización incorrecta de entrada durante la generación de páginas web ('Cross-site Scripting') en Drupal RapiDoc OAS Field Formatter permite Cross-Site Scripting (XSS). Este problema afecta a RapiDoc OAS Field Formatter: desde la versión 0.0.0 hasta la 1.0.1.","source":"nvd"}],"published":"2025-03-19T18:53:23.000Z","modified":"2026-09-10T03:45:59.111Z","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":"1.0.1","status":"affected"}],"vendor":"Drupal","product":"RapiDoc OAS Field Formatter","repo":"https://git.drupalcode.org/project/rapidoc_elements_field_formatter","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"Packagist","package":"drupal/rapidoc_elements_field_formatter","purl":"pkg:composer/drupal/rapidoc_elements_field_formatter","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/rapidoc_elements_field_formatter","purl":"pkg:composer/drupal/rapidoc_elements_field_formatter?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"},{"ranges":[{"status":"affected","fixed":"1.0.1"}],"vendor":"chapterthree","product":"rapidoc_oas_field_formatter","cpe":"cpe:2.3:a:chapterthree:rapidoc_oas_field_formatter:*:*:*:*:*:drupal:*:*","source":"nvd"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2025-025","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","drupal","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31696","tags":["advisory"],"sources":["ghsa"]},{"url":"https://git.drupalcode.org/project/rapidoc_elements_field_formatter","tags":["package"],"sources":["ghsa"]}],"credits":["Joseph Zhao (pandaski)","Arlina Espinoza Rhoton (arlina)","Benji Fisher (benjifisher)","Lee Rowlands (larowlan)","Bram Driesen (bramdriesen)","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:24.494Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-31696","url":"https://www.cve.org/CVERecord?id=CVE-2025-31696","licence":"CVE Terms of Use","modified":"2025-04-29T15:17:13.268Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-86h4-w859-3hhv","url":"https://github.com/advisories/GHSA-86h4-w859-3hhv","licence":"CC-BY-4.0","modified":"2025-12-10T23:41:13.745Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2025-025","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-025","licence":"MIT","modified":"2026-09-10T03:45:59.111Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-31696","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31696","licence":"Public domain","modified":"2026-06-17T09:10:47.950Z"}],"updatedAt":"2026-11-25T22:58:55.758Z","epss":{"score":0.00262,"percentile":0.19277,"date":"2026-12-01T12:00:22.000Z"}}