CVE-2026-87938
JSON

6.5medium

CSP log - Critical - SQL Injection - SA-CONTRIB-2026-136

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.36% (higher than 31% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
drupal
Also known as
DRUPAL-CONTRIB-2026-136

Description

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.

Affected

Product or packageVersionsReported by
Drupal CSP logfrom 0.0.0 before 1.0.2CVE List
drupal/csp_log (Packagist:https://packages.drupal.org/8)before 1.0.2Drupal Security Team

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

Drupal Security Team

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.

The module did not sufficiently sanitize user-supplied values used in database queries, resulting in an SQL injection vulnerability.

This 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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-87938 changed 2026-10-30CVE Terms of Use
Drupal Security TeamDRUPAL-CONTRIB-2026-136 changed 2026-09-09MIT
NVDCVE-2026-87938 changed 2026-10-30Public domain