Versions
Drupal 7, 8, 9, 10 and 11, including Drupal CMS, self-hosted or on Acquia Cloud Platform
Platforms / Drupal
A Drupal security scan is the CMS Security Audit of the custom modules, themes and configuration that a site owner adds on top of Drupal core.
The CMS Security Scanner reads the custom code of a Drupal 7, 8, 9, 10 or 11 site, including Drupal CMS, self-hosted or on Acquia Cloud Platform. Each finding names the module, the file and the line, and a CMS Security Consultant checks it before the report.
Versions
Drupal 7, 8, 9, 10 and 11, including Drupal CMS, self-hosted or on Acquia Cloud Platform
Code read
PHP, Twig, YAML and JavaScript in custom modules and themes
What we need
Custom modules and themes, composer.lock, exported configuration and settings files with secret values removed
Report
One finding per issue, with its entry point, its severity and a fix for your developers
The scan lists every construct that lets a request, a user, a job or another system reach custom code, and records the access control in front of it.
| Category | Construct in your code | Risk |
|---|---|---|
| Routes and controllers | Routes in *.routing.yml, route callbacks, RouteSubscriber classes and hook_menu() items in Drupal 7 | A route with a weak access requirement or a missing _csrf_token exposes its controller. |
| Forms and AJAX | Form API classes, hook_form_alter() and #ajax callbacks | Forms take user input, and an alteration can remove a validation step or change #access. |
| Web services | REST resource plugins, JSON:API settings, custom normalizers and denormalizers | Web services are direct HTTP entry points that turn client data into field values. |
| GraphQL | Schema extensions, data producers and resolvers of the graphql module | Each resolver must check entity access itself before it returns data. |
| Display plugins | Block plugins, field formatters and field widgets | These plugins output stored values, so they are a common place for stored XSS. |
| Entity and access hooks | hook_entity_*, hook_node_access(), hook_node_grants() and hook_query_TAG_alter() | An access hook that grants too much affects every page and listing that shows the entity. |
| Access and authentication services | Access checkers, _custom_access callbacks, authentication providers, SSO and OAuth code | These services decide who the user is and whether the user reaches a route. |
| Request pipeline | Event subscribers on kernel events, HTTP middleware and parameter converters | Code that runs before routing and access checks can bypass both. |
| Background jobs and commands | Queue workers, hook_cron(), Drush commands, install and update hooks | Background code runs with full privileges on data that users stored earlier. |
| Views extensions | Custom views fields, filters, arguments and hook_views_query_alter() | A custom handler can add raw SQL or skip the access tag of the view query. |
| Webhooks and file uploads | Inbound integration controllers, managed_file elements and upload validators | A webhook must verify its sender, and an upload handler decides file names and destinations. |
| Templates and front end | Twig templates, preprocess hooks, Drupal behaviors and Canvas code components | Templates and client code decide which output Twig escapes and which output reaches the DOM unescaped. |
| Configuration as code | Exported roles, permissions, text formats and links in config/sync and *.links.*.yml | A permission granted to the anonymous role or an unsafe text format changes the attack surface. |
The scan traces user data from each entry point to the operations below.
| Operation | What the scanner looks for |
|---|---|
| SQL injection | Queries built by concatenation, and user data in condition(), orderBy() or expressions instead of placeholders. |
| Access bypass | Entity queries with accessCheck(FALSE), entity loads without an access check and routes open to everyone. |
| Cross-site scripting | User data in #markup, Markup::create(), the Twig raw filter or the wrong Xss filter. |
| Cross-site request forgery | GET routes that change data without a _csrf_token requirement, and forms without a form token. |
| Server-side request forgery | The http_client service, Guzzle and URL reads where a user controls the destination host. |
| Deserialization | unserialize() on request, cookie, cache or database data without an allowed_classes option. |
| Files and paths | User-chosen stream wrappers, paths built from request data, wide upload extension lists and private files served without access checks. |
| Code and command execution | eval(), dynamic callables, render array callbacks set from data and shell commands that take user input. |
| Open redirect and cache leaks | TrustedRedirectResponse to user-chosen hosts, and personal output without the user or permissions cache context. |
| Secrets | Credentials, API keys and the hash salt in settings.php, configuration YAML or module code. |
Drupal security advisories show the vulnerability classes that the scan looks for in custom code.
The scanner reviews the custom modules, custom themes, patches and exported configuration of a Drupal 7, 8, 9, 10 or 11 site. It lists every entry point, such as routes, forms, REST resources, hooks and queue workers. It then traces user data from each entry point to dangerous operations such as SQL queries, output and file writes.
The scan does not audit Drupal core or contributed modules as products, because the Drupal Security Team publishes advisories for them. The scan checks the versions in composer.lock against those advisories. It also checks whether your custom code calls a vulnerable function in a dependency.
Drupal core gives safe APIs, but custom code can skip them. Examples are a query built by string concatenation, an entity query with accessCheck(FALSE) or a Twig template with the raw filter. Drupal advisories cover core and contributed modules, and no advisory covers the custom code of one site.
The scan needs the source code, composer.lock, exported configuration and settings files with secret values removed. It does not need production access, a database dump or user content.
Yes. Acquia Cloud Platform runs standard Drupal, so the scan reads the same custom modules, themes and configuration. The report also covers the Acquia-specific settings files that your repository holds.
Drupal 10 reaches end of life on 9 December 2026, and after that date it gets no security fixes. A site that stays on Drupal 10 carries the risk of every later core advisory. The report states the core branch of your site and its support status.
The same method, report and consultants apply to each platform.
Tell us how to reach you. A CMS Security Consultant will contact you to plan your Drupal scan.