{"id":"DRUPAL-CONTRIB-2026-136","details":"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.","aliases":["CVE-2026-87938"],"modified":"2026-09-09T19:25:58.297930Z","published":"2026-09-09T17:16:33Z","references":[{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2026-136"}],"affected":[{"package":{"name":"drupal/csp_log","ecosystem":"Packagist:https://packages.drupal.org/8","purl":"pkg:composer/drupal/csp_log?repository_url=https:%2F%2Fpackages.drupal.org%2F8"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.2"}],"database_specific":{"constraint":"\u003c1.0.2"}}],"database_specific":{"source":"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/csp_log/DRUPAL-CONTRIB-2026-136.json","affected_versions":"\u003c1.0.2"}}],"schema_version":"1.9.0","credits":[{"name":"eduardo morales alberti","contact":["https://www.drupal.org/u/eduardo-morales-alberti"]}]}