Postgres Enterprise Manager 10.6.1 release notes v10.6

Released: 19 November 2026

Bug fixes, and security fixes in Postgres Enterprise Manager 10.6.1 include the following:

Enhancements

Description
Auto Discovery can now register a discovered server under a cluster as well as under a server group.

The Server group field in the Auto Discovery dialog previously listed only server groups. It now has separate Server Groups and Clusters sections, matching the Add Server dialog.

configure-pem-server.sh now stops with a clear message when a step fails, and writes the reason to the log.

Previously the script could continue after a failed step, or stop with a message that did not give the cause. The script now checks the steps that can fail, including the schema upgrade, server registration, web setup-db, and certificate steps. A failed psql query is no longer reported as a success. Failed systemctl commands show the reason.

The following behaviour also changes:

  • Schema upgrade files in share/upgrades run in numeric order, and the schema version is checked after each file. A database that is newer than the package gets a warning and is left alone.
  • The sslutils upgrade is skipped, with a log message, if the extension is not available on the server.
  • Certificates and keys are written to temporary files and moved into place only when every step succeeds.
  • The backup of old certificates now covers *.crt, *.key, and *.crl files at the top of the data directory. Previously only *.crt files were backed up.
Added missing indexes on the pem.alert table.

The indexes reduce the time taken to fetch chart data that depends on the table.

The agent now refreshes its long-lived PEM server connections by age, and never while a connection is busy or in a transaction.

Previously only the main connection was refreshed, and the refresh was driven by a loop count. The alert threads, the spooler threads, and the heartbeat connection were replaced only after they failed. Every long-lived PEM connection is now refreshed after a minimum lifetime, plus a random jitter so that connections do not refresh together.

The lifetime is set by the new agent_connection_lifetime setting, in seconds, in agent.cfg (AgentConnectionLifetime in the Windows registry). It can also be set with a --register-agent option. The default is 3600, the minimum is 600, and the maximum is 86400. A value that is out of range or not a number uses the default and logs a warning. If a refresh fails, the agent keeps using its existing connection and tries again.

Security Fixes

Description
Fixed CVE-2026-132658, an issue whereby the pem_agent role could read and write files on the PEM server.

The PEM schema granted the pg_read_server_files and pg_write_server_files roles to pem_agent. The upgrade now revokes both roles from pem_agent. The agent's certificate-handling functions in sslutils are given the access they need without these roles, so sslutils 1.4.2 or later is required on the PEM server host.

Included the security fixes and hardening changes from pgAdmin 4 9.19.

The related areas of PEM have also been hardened. See the other Security entries in these release notes for changes specific to PEM.

Fixed an issue whereby the REST API /token/ endpoint accepted an empty password.

Where pg_hba.conf on the PEM database accepts the web server's connection without a password, a request with an empty password could obtain a token for any role holding pem_rest_api. The endpoint now refuses a request with a missing body, or an empty or non-string username or password, with a 401 response.

Fixed CVE-2026-132665, an issue whereby a user could deploy a job template to servers, server groups, or agents belonging to teams they were not a member of.

pem.deploy_job_template() ignored team boundaries. Job template deploys and target actions now check that the user's team has access to each target server and agent, and the add_targets API reports a clear error for an inaccessible target. Redeployments that reuse stored targets are not affected.

Fixed CVE-2026-132661, an issue whereby multi-factor authentication (MFA) was not enforced on all PEM routes.

A session that had passed only the password step could call PEM routes directly without completing MFA. MFA is now enforced on every PEM route and Socket.IO event, and a user must complete MFA before managing their MFA factors. Emailed MFA codes now expire after a configurable timeout (default 5 minutes), and an account is locked temporarily after 5 wrong MFA codes. You can also enable an optional temporary lock for pem_internal accounts after repeated failed logins by setting PEM_FAILED_LOGIN_LOCK_ATTEMPTS; it is off by default.

Fixed CVE-2026-132664, an issue whereby any PEM login could read the encrypted password column of pem.agent_server_binding.

Members of pem_user can no longer read the password column. The pem_agent, pem_admin, and pem_database_server_registration roles can still read it, so agent registration and the console features that use the table continue to work.

Fixed CVE-2026-132662, a path traversal issue in the SQL Profiler trace filter save and load functions.

Previously a user with the pem_comp_sqlprofiler role could read and overwrite files outside their own storage directory. Trace filter files are now confined to the user's storage directory and are created with restrictive permissions. The unused Query Tool load_file and save_file routes, which had the same weakness, are removed.

Fixed CVE-2026-132663, an issue whereby webhook URLs could use file:// to read local files.

Webhook URLs and OAuth token URLs must now use http:// or https://. This is enforced in the PEM web interface, in the database, and in the agent. The upgrade disables any existing webhook that uses another URL scheme and logs a warning that names it; to use it again, correct its URL and re-enable it. The upgrade also clears stored delivery error text that might contain file contents, and delivery error text is now truncated to 1 KB. Webhooks that use HTTP or HTTPS, including those that use mTLS or OAuth, are unchanged.

Fixed CVE-2026-132668, an issue whereby any PEM login could call pem.send_webhook() to queue payloads to any configured webhook.

Execute permission on pem.send_webhook() is revoked from PUBLIC, pem_user, pem_admin, and pem_agent. Alert-driven webhooks continue to fire.

Fixed CVE-2026-132659, an issue whereby the credentials of one agent could be used to schedule jobs on every other agent.

All agent logins share the pem_agent role, which held broad write access to the PEM schema. The role is now restricted so that one agent's credentials can no longer create jobs, or change alerts, servers, agents, or notifications, for other agents. Upgrade the agent on the PEM server host together with the server: an older agent on that host can no longer run its CA certificate expiry check. Stop agents while you upgrade the PEM server.

Fixed CVE-2026-132660, an issue whereby a function planted in a writable schema could run with the rights of the function owner, up to superuser, through a SECURITY DEFINER function.

Many SECURITY DEFINER functions in the pem schema did not set a fixed search_path, so a caller who could create objects in a schema on the path could place a function ahead of the intended one. The search_path of these functions is now pinned to pg_catalog, pg_temp.

Updated Brotli to 1.2.1 to fix CVE-2026-111497.

Changes

Description
Fixed an issue whereby the setup.py commands that manage users, servers, and preferences failed with a traceback.

PEM keeps users, servers, and preferences in the PEM database, so these commands cannot work on the web server's local configuration database. The commands add-user, add-external-user, update-user, update-external-user, load-users, get-users, delete-user, dump-servers, load-servers, get-prefs, and set-prefs now report that PEM does not support them and exit with status 1. setup-db and cleanup-session-files are unchanged.

Bug Fixes

DescriptionAddresses
Fixed an issue whereby a server or agent could appear in more than one server group after its group was changed.

The object tree was not refreshed after the group change. The tree is now refetched, so the server appears only under its new group.

Fixed an issue whereby the New Probe and Create Alert dialogs could intermittently fail with "Something went wrong".

The failure occurred when a dialog containing a grid opened while another grid was already displayed, for example when opening New Probe from Manage Probes, or Create Alert from the Alert tab of a new profile. The error reported was "Cannot have two HTML5 backends at the same time". All grids now share one drag-and-drop backend.

Fixed an issue whereby form validation errors were not visible in the high contrast theme.

The field label, error icon, input border, and required-field asterisk were drawn in the same colour as the dialog background. They now use the error accent colour and meet WCAG AA contrast.

Fixed an issue whereby no error was logged when an alert script configured to run on the PEM server could not be run.

This happened when no agent could be found to run the script, for example when the PEM server had been registered before its server information was discovered. A warning is now written to the PEM database server log.

65269
Fixed an issue whereby the timestamp in alert email bodies showed the wrong UTC offset during daylight saving time.

For example, a time in CEST (+02) was shown with the CET offset (+01), so the body of the email disagreed with the email header by one hour.

Fixed an issue whereby the error dialog shown when adding a duplicate alert to a profile had no title.
Fixed an issue whereby hovering over a row in the per-target table on the Probe Diagnostics detail page made the row text unreadable in the high contrast theme.
Fixed an issue whereby historical data for a dropped database was never purged from the pemhistory tables.

The probe-object combination for a dropped database was deleted on the next run of the "Update the probe-objects combination" job instead of after its grace period. The purge job then had nothing to process for that database, so its history stayed in pemhistory after the retention period had passed. The combination is now deleted only after the grace period.

Fixed an issue whereby Probe Diagnostics charts drew a continuous line across an interval in which the probe was disabled or had no data.

The Executions & failures and Time breakdown charts now show a gap for intervals with no data.

Fixed an issue whereby the time axis of Probe Diagnostics charts was spaced by the intervals that contained data rather than by equal time ranges.

The x-axis now shows evenly spaced time ranges across the selected window.

Fixed several issues in configure-pem-server.sh where the script took the wrong action even though no command failed.

The fixes include:

  • The -au option is now accepted.
  • A saved web port is no longer replaced by 8443 on every run.
  • The uninstall option now removes pem.wsgi.
  • A typed password no longer loses its backslashes.
  • A rerun after a failed fresh installation now registers the server again, instead of treating the installation as an upgrade.
  • A saved configuration without a USE_NGINX line is treated as httpd by uninstall and switch-web-server.sh.
  • -ps, -dbi, -ds, and -nhc can now be changed on a later run, and the new value is saved.
  • An upgrade of a host installed with -kdc or -utd no longer requires those options to be repeated.
  • FIPS settings are kept on web-only upgrades from versions before 10.3.
  • An upgrade now logs the options it ignores, such as -au, -uac, -uak, -arp, -aro, -srp, and --replication-solution.
  • The script no longer creates a stray venv/lib/lib link on upgrade, and no longer writes 0/32 into pg_hba.conf for a route without a gateway.
Fixed an issue whereby topology discovery failed with a duplicate key error when several PGD clusters with the same name, or several active servers with the same description, were registered in PEM.
Fixed an issue whereby transactions per second (TPS) shown on the dashboard was incorrect when the refresh interval was not one second.

The dashboard did not divide the change in the transaction counters by the refresh interval. This fix is taken from pgAdmin upstream.

Fixed an issue whereby the PEM agent telemetry flush held an additional connection to the PEM server.

The probe telemetry thread opened its own connection and did not close it when finished. It now shares one of the agent's existing PEM connections.

Fixed an issue whereby Performance Diagnostic could wait indefinitely for a database connection when the monitored server was down.

Previously the request, and the web server thread handling it, waited without limit. A pool that cannot connect is now closed after its timeout (PEM_PD_DB_POOL_TIMEOUT plus the connect timeout), and a pool whose connections are all in use is waited for up to PEM_PD_DB_POOL_BUSY_WAIT (new setting, default 30 seconds). The reason a pooled connection could not be made is logged in the PEM server log.

Fixed an issue whereby configure-pem-server.sh did not make the database present the generated server.crt on Debian-family EPAS clusters.

On clusters created with epas_createcluster, ssl_cert_file and ssl_key_file are already set to the ssl-cert-snakeoil files, and the script only replaced commented-out lines. The script now sets both parameters whether or not they are commented out, so the database presents the generated certificate.

Fixed an issue whereby a login with the pem_database_server_registration role but not pem_admin could not register a server or bind an agent.

The insert failed with "permission denied for table alert_queue". The trigger that synchronises the alert queue now runs with the privileges needed to write to the table.

Fixed an issue whereby the Manage Probes grid showed a blank gap and skipped the first rows after switching tabs.

This happened when all rows fit on screen, so the grid could not scroll. All rows of the current page are now drawn from the top of the grid.

Fixed an issue whereby a fresh installation that uses a PostgreSQL configuration database failed during migration setup.

A migration revision ID was longer than the 32-character limit of the Alembic version_num column, which PostgreSQL enforces. Installations that use the default SQLite configuration database were not affected.

Fixed an issue whereby remotely monitored servers were shown without their agent in the breadcrumb menu, so new custom dashboards were saved at the wrong level.

Each remotely monitored server is now listed under the agent that monitors it, in a REMOTE SERVERS section. The dashboard level is read from the page context, so custom dashboards created on a remote server appear on that server.