Vulnerability advisory

DRUPAL-CORE-2026-004

Published Updated OSV record ↗

Also known as BIT-drupal-2026-9082CVE-2026-9082GHSA-ghwc-95x2-682j

Severity

Severity not reported.

Affected versions

AffectedFixed in
8.9.0 to before 10.4.1010.4.10Advisories →
10.5.0 to before 10.5.1010.5.10Advisories →
10.6.0 to before 10.6.910.6.9Advisories →
11.0.0 to before 11.1.1011.1.10Advisories →
11.2.0 to before 11.2.1211.2.12Advisories →
11.3.0 to before 11.3.1011.3.10Advisories →
Also listed as affected (302)

Description

Drupal core includes a database abstraction API to ensure that queries executed against the database are sanitized to prevent SQL injection attacks.

A vulnerability in this API allows an attacker to send specially crafted requests, resulting in arbitrary SQL injection for sites using PostgreSQL databases. This can lead to information disclosure, and in some cases privilege escalation, remote code execution, or other attacks.

This vulnerability can be exploited by anonymous users.

This SQL injection vulnerability only affects sites using PostgreSQL. However, the third-party dependency updates in these releases apply to all sites.

Updates

May 22 2026, 04:30 UTC: The risk score has been updated to reflect that exploit attempts are now being detected in the wild.

Upstream security advisories

The Drupal releases for supported branches (11.3, 11.2, 10.6, and 10.5) in this advisory also include security updates for Symfony and Twig. Those projects have released important Security Advisories that were coordinated with this Drupal release, and Drupal is affected by some of the vulnerabilities.

Depending on your site configuration and contrib modules, you may be vulnerable to one or more of these upstream issues, so updating these dependencies is highly recommended whether the SQL Injection vulnerability affects you or not. It is also recommended to review which user roles have the ability to update Twig templates, for example via Views or contributed modules.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools