{"id":"GHSA-4f8q-mwgc-3mwc","aliases":["CVE-2025-31691","DRUPAL-CONTRIB-2025-020"],"title":"Drupal OAuth2 Server Missing Authorization vulnerability","titleSource":"OSV","descriptionSource":"OSV","description":"Provides OAuth2 server functionality based on the oauth2-server-php library.\n\nThe module does not consistently enforce admin configurations allowing users on a disabled server to still authenticate.","severity":"critical","score":9.8,"published":"2025-02-26T18:35:21.000Z","modified":"2026-09-10T03:46:09.150Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"drupal/oauth2_server","sources":[{"name":"OSV · GHSA-4f8q-mwgc-3mwc","url":"https://osv.dev/vulnerability/GHSA-4f8q-mwgc-3mwc"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"2.1.0"}],"type":"ECOSYSTEM"}],"versions":[],"fixed":["2.1.0"]},{"ecosystem":"Packagist:https://packages.drupal.org/8","name":"drupal/oauth2_server","sources":[{"name":"OSV · DRUPAL-CONTRIB-2025-020","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-020"}],"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-31691","https://git.drupalcode.org/project/oauth2_server","https://www.drupal.org/sa-contrib-2025-020"],"sources":[{"name":"OSV","id":"GHSA-4f8q-mwgc-3mwc","modified":"2025-12-10T23:41:10.210993Z","url":"https://osv.dev/vulnerability/GHSA-4f8q-mwgc-3mwc"},{"name":"OSV","id":"DRUPAL-CONTRIB-2025-020","modified":"2026-09-10T03:46:09.150368330Z","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-020"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},{"source":"OSV","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","score":8.1}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T21:55:33.923Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}