{"id":"CVE-2026-87938","aliases":["CVE-2026-87938","DRUPAL-CONTRIB-2026-136"],"related":[],"kind":"vulnerability","state":"published","title":"CSP log - Critical - SQL Injection - SA-CONTRIB-2026-136","summary":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Drupal CSP log allows SQL Injection. This issue affects CSP log versions: from 0.0.0 to 1.0.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Drupal CSP log allows SQL Injection. This issue affects CSP log versions: from 0.0.0 to 1.0.2.","source":"cvelist"},{"lang":"en","text":"The CSP Log module enhances any module that adds the CSP header to a site, by providing a reporting endpoint, custom storage, and aggregated reports that can be used to trace issues or adapt the CSP headers.\n\nThe module did not sufficiently sanitize user-supplied values used in database queries, resulting in an SQL injection vulnerability.\n\nThis vulnerability is mitigated by the fact that an attacker needs access to an account with the *Access CSP reports* permission to exploit the SQL Injection.","format":"markdown","source":"drupal"}],"published":"2026-09-09T17:16:33.000Z","modified":"2026-10-30T20:17:22.507Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","fixed":"1.0.2","status":"affected"}],"vendor":"Drupal","product":"CSP log","repo":"https://git.drupalcode.org/project/csp_log","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.2"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/csp_log","purl":"pkg:composer/drupal/csp_log?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2026-136","tags":["web"],"sources":["cvelist","drupal","nvd"]}],"credits":["eduardo morales alberti","Ivo  Van Geertruyen (mr.baileys)","Bram Driesen (bramdriesen)","Greg Knaddison (greggles)","Jess  (xjm)","Swan Kalata (akalata)"],"assigner":"drupal","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-22T17:29:19.440Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-87938","url":"https://www.cve.org/CVERecord?id=CVE-2026-87938","licence":"CVE Terms of Use","modified":"2026-10-30T20:00:58.622Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2026-136","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2026-136","licence":"MIT","modified":"2026-09-09T19:25:58.297Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-87938","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87938","licence":"Public domain","modified":"2026-10-30T20:17:22.507Z"}],"updatedAt":"2026-11-25T22:59:46.735Z","epss":{"score":0.00361,"percentile":0.3199,"date":"2026-12-01T12:00:22.000Z"}}