update.php is Drupal’s update script for applying required database and schema changes after a core or module upgrade. Updating the code alone may not complete an upgrade: the script runs the pending update routines needed to bring the site’s stored data and structure in line with the new version.
This matters for security because an incomplete update can leave a site in an unexpected or vulnerable state. Administrators should run the script when Drupal’s upgrade instructions require it, then verify that updates completed and restrict access to the update path as appropriate. In incidents involving residual installer or upgrade exposure, completing this step is part of remediation-but it does not replace applying fixed releases, reviewing logs, and checking the site’s security configuration.


