Short answer

PostgreSQL shipped 18.7, 17.12, 16.16, 15.20 and 14.25 on November 12, 2026, with fixes for 52 security vulnerabilities, and 14.25 is the last release PostgreSQL 14 will get. Run SHOW server_version; on every database behind your app, update to the fixed release for your major version, and plan a move to 17 or 18 if you are on 14 or older. Then revoke any function that lets clients run free SQL, confirm row level security on every table the client writes to, and search your built app for database URLs.

On November 12, 2026, the PostgreSQL project shipped 18.7, 17.12, 16.16, 15.20 and 14.25. The release fixes 52 security vulnerabilities and more than 140 bugs, and 14.25 is the last release PostgreSQL 14 will ever get. If your iOS app has a backend, there is a good chance a Postgres database sits behind it, and a fair chance nobody has looked at its version since the day it was created.

That is common with apps built quickly with AI tools. The builder picks Supabase or a Docker image on a small VPS, the app works, and the database becomes something that just runs. This post walks through what changed, how to find out which version you are on, which of the fixes matter for a typical app backend, and the cleanup steps the release notes ask for after you update. Every SQL query below was run against a local PostgreSQL 16 server before it went into this post.

What happened on November 12

The PostgreSQL Global Development Group published an update release for every supported major version, plus a second release candidate for PostgreSQL 19. The announcement lists 52 CVEs, each with a CVSS v3.1 score. Most of the high scores are 8.8, and the titles describe things like type confusion, use after free and heap buffer overflows that can lead to arbitrary code execution on the database server.

The same announcement carries an end of life notice. PostgreSQL supports each major version for five years, and version 14 was first released on September 30, 2021. Its final release date on the project's versioning page is November 12, 2026. From now on, any new security bug found in 14 will stay unfixed in 14.

Two more dates are worth knowing. PostgreSQL 19 general availability is planned for November 19, 2026, unless the project needs a delay or another release candidate. And on the supported list, 15 is the next version to retire, with a final release date of November 11, 2027.

Why this lands on iOS developers

An iOS app does not ship a Postgres server inside the binary, so it is easy to file this under "backend stuff" and move on. The problem is that for a solo developer or a small team, the backend is also yours. Your users' accounts, purchases, messages and uploads live in that database. If it can be broken into, App Review will not catch it and your crash reports will not show it.

The usual setups look like this:

  • A managed Postgres service such as Supabase, Neon, Amazon RDS or Google Cloud SQL. The provider installs updates, but on its own schedule and sometimes only when you press a button.
  • A Docker container on a VPS, often started from a tag like postgres:14 or postgres:16 in a compose file that an AI tool wrote months ago.
  • A Postgres server installed with a package manager on a Linux box, updated whenever someone remembers to run the system updates.

Each of these needs a slightly different check, so the steps below start with the one thing that is the same everywhere: asking the server what it is.

Step 1: Find the version you actually run

Connect with any SQL client (the Supabase SQL editor, psql, TablePlus, Postico) and run:

SHOW server_version;
SHOW server_version_num;

The first line gives a readable version such as 16.15. The second gives a number such as 160015, where the first two digits are the major version and the last digits are the minor release. Compare it with the fixed releases from November 12:

Major versionFixed releaseStill supported after this?
1818.7Yes, until November 2030
1717.12Yes, until November 2029
1616.16Yes, until November 2028
1515.20Yes, until November 2027
1414.25No, this was the final release

If you are on 13 or older, you were already past end of life before this release. Version 13's final release was November 13, 2025.

If you would rather run a script than read numbers, here is a small Python check. It needs psycopg (pip install "psycopg[binary]") and a connection string in DATABASE_URL. Use a read-only or low-privilege user if you have one. It prints the server version, says whether it is behind the November 12 release, and lists any installed extensions that appear in this release's fix list.

import os, sys
import psycopg

# Minor releases from the PostgreSQL announcement of November 12, 2026
FIXED = {18: 7, 17: 12, 16: 16, 15: 20, 14: 25}

url = os.environ.get("DATABASE_URL")
if not url:
    sys.exit("Set DATABASE_URL first")

with psycopg.connect(url) as conn:
    num = int(conn.execute("SHOW server_version_num").fetchone()[0])
    exts = [r[0] for r in conn.execute("SELECT extname FROM pg_extension ORDER BY 1")]

major, minor = num // 10000, num % 10000
print(f"Server: {major}.{minor}")
if major not in FIXED:
    print("This major version gets no fixes from this release. Plan a major upgrade.")
elif minor < FIXED[major]:
    print(f"Behind: the fixed release is {major}.{FIXED[major]}")
else:
    print("Patched for the November 12 release")
if major == 14:
    print("PostgreSQL 14 is end of life after 14.25. Plan a move to 17 or 18.")
risky = {"plperl", "plperlu", "pltcl", "pltclu", "dblink", "pg_trgm", "dict_int"}
print("Extensions named in this release's fixes:", sorted(risky & set(exts)) or "none")

Against a local 16.15 test server with pg_trgm installed, it printed Behind: the fixed release is 16.16 and listed pg_trgm. Do not commit the connection string to your repo, and do not paste it into a chat with a coding agent. Export it in your shell for the one run.

On Supabase

Supabase shows the current service versions in the project dashboard, and its upgrade guide says upgrades start from an "Upgrade project" button in the project settings. Its documentation places that button on the General settings page in one guide and under Project Settings, Infrastructure in its PostgreSQL 14 notice, so check both if you do not see it right away. Supabase uses the same process for major and minor upgrades: it takes the project offline, builds a new instance, copies the data and runs pg_upgrade. The dashboard shows a time estimate before you start.

Supabase already retired PostgreSQL 14 on its platform. Its deprecation notice, dated May 12, 2026, said projects still on 14 on July 1, 2026 would be upgraded automatically, and projects using unsupported extensions would be paused instead. So a hosted Supabase project should no longer be on 14. Self-hosted Supabase was not covered by that notice, so if you run it yourself, check.

Whether the November 12 patches are already available on your project depends on Supabase's own rollout. If the dashboard does not offer a newer version yet, note the date you checked and look again later.

On a Docker container

Look at the image line in your compose file or deploy script. A tag like postgres:16 follows the latest 16.x image when you pull, while a pinned tag like postgres:16.15 stays put until someone edits it. For a minor update inside the same major version, the PostgreSQL project says you only need to stop the server, install the new binaries and restart. With Docker that means pulling the newer image of the same major version and recreating the container, with the data volume left in place. Take a backup first anyway.

Changing the major version is different. The tag change from postgres:14 to postgres:17 on its own will not work, because the data directory format is not compatible between major versions. That needs pg_upgrade or a dump and restore, covered in Step 5.

On a package-managed server

Use your distribution's normal update path, then restart PostgreSQL and run SHOW server_version; again to confirm. Distributions ship their own builds on their own timing, so the number may lag a day or two behind postgresql.org. OpenSSH's sshole Bug Was Attacked Within Hours walks through the same kind of version check for SSH on the same servers.

Testing the version check without a database server

The script above was also run on a Mac (Python 3.12, macOS 26.0.1) with psycopg replaced by a small stand-in module that returns a chosen server_version_num and a chosen list of extensions. That tests the script's own logic, not the connection or the SQL. These are the lines it printed for each case:

server_version_numExtensions givenWhat the script printed
180007plpgsqlServer: 18.7, Patched for the November 12 release, none
170011plpgsql, pg_trgm, pgcryptoServer: 17.11, Behind: the fixed release is 17.12, ['pg_trgm']
150020plpgsql, dblinkServer: 15.20, Patched for the November 12 release, ['dblink']
140025plpgsqlServer: 14.25, Patched, plus the end of life line
140019plpgsql, plperlServer: 14.19, Behind: the fixed release is 14.25, the end of life line, ['plperl']
130020plpgsqlServer: 13.20, This major version gets no fixes from this release
190000plpgsqlServer: 19.0, This major version gets no fixes from this release
90624plpgsqlServer: 9.624, This major version gets no fixes from this release
no DATABASE_URLnoneSet DATABASE_URL first, exit code 1

For every version from 10 up, the verdicts match the table in Step 1. Three rows need a word of explanation.

  • 14.25 says both "Patched" and "end of life". Both are true. The server has every fix that exists today, and it will get no fix for anything found tomorrow.
  • 9.6.24 prints as 9.624. Before version 10, PostgreSQL version numbers had three parts, so 9.6.24 is stored as 90624 and the script's split by 10000 gives the wrong display. The verdict is still right: 9.6 had its final release on November 11, 2021.
  • A 19 pre-release is told to plan a major upgrade. A version with no minor release yet ends in 0000, and 19 is not in the script's list, so it falls into the "no fixes" branch. If you are trying 19 on a staging database, read that line as "not covered by this check", not as advice.

The FIXED table only knows the November 12 numbers. PostgreSQL normally ships update releases every three months, and after the next one a server on 16.16 will still print "Patched for the November 12 release". That line stays true, but it says nothing about later fixes, so update the numbers in FIXED from the next announcement when you run the script again.

Step 2: Work out who can run SQL on your database

Most of the code execution bugs in this release are triggered by SQL statements or by specific extensions and tools. That makes one question more useful than reading all 52 CVE titles: who, or what, can send arbitrary SQL to your server?

In a Supabase style app, the iOS client talks to the database through an API layer with the anon or authenticated role, and row level security decides what each request can touch. In that setup the client cannot normally run free SQL. The gap appears when someone adds a database function that runs whatever SQL it is given, and then lets the client call it. AI coding tools sometimes write exactly that kind of helper to get past an error quickly, often named something like exec_sql or run_query.

PostgreSQL grants EXECUTE on new functions to PUBLIC by default, so a function in an exposed schema can end up callable by any role unless someone revoked it. This query lists your own functions in the public schema that the anon or authenticated roles can execute, skips functions that belong to extensions, and flags the ones that run with the owner's privileges or contain dynamic SQL:

SELECT p.proname AS function_name,
       p.prosecdef AS security_definer,
       p.prosrc ILIKE '%execute%' AS runs_dynamic_sql
FROM pg_proc p
JOIN pg_namespace n ON n.oid = p.pronamespace
WHERE n.nspname = 'public'
  AND NOT EXISTS (SELECT 1 FROM pg_depend d WHERE d.objid = p.oid AND d.deptype = 'e')
  AND (has_function_privilege('anon', p.oid, 'EXECUTE')
       OR has_function_privilege('authenticated', p.oid, 'EXECUTE'))
ORDER BY security_definer DESC, runs_dynamic_sql DESC, function_name;

Those role names are Supabase's. On another setup, replace them with the role your API connects as. The runs_dynamic_sql column is a rough text match, so read the source of anything it flags. A row with both columns set to true deserves a careful look today. If the app does not need to call the function, take the permission away:

REVOKE EXECUTE ON FUNCTION public.exec_sql(text) FROM PUBLIC, anon, authenticated;

Change the function name and argument types to match yours. On the test server, has_function_privilege('anon', 'public.exec_sql(text)', 'EXECUTE') returned false after this statement.

Also check where your backend code builds SQL from user input. String concatenation in an Edge Function, a Node server or a Python worker gives an attacker the same SQL access that these CVEs need, and patching the server does not fix that.

Step 3: Check the fixes that touch row level security

Apps that lean on row level security for privacy should read three entries closely, because they describe ways around policies or view conditions:

  • CVE-2026-120154 (CVSS 4.3): INSERT ... ON CONFLICT can read rows despite row security policies.
  • CVE-2026-116311 (CVSS 5.4): DROP OWNED can remove restrictive row security policies from tables the user does not own.
  • CVE-2026-16237 (CVSS 5.4): INSERT ... ON CONFLICT can read or modify rows despite the WHERE condition of an auto-updatable view.

The scores are modest next to the code execution bugs, but for an app whose whole privacy model is "each user only sees their own rows," a policy bypass is the bug that leaks data. If your app does upserts from the client, which many AI-generated Supabase apps do for profiles and settings, this applies to you. Updating the server is the fix. While you wait for your provider, confirm that every table the client writes to has row level security turned on:

SELECT relname AS table_name, relrowsecurity AS rls_enabled
FROM pg_class
WHERE relnamespace = 'public'::regnamespace AND relkind = 'r'
ORDER BY rls_enabled, table_name;

Any table at the top of that list with rls_enabled set to false is open to whatever the API role is allowed to do, patched server or not.

Step 4: See which named extensions and tools you use

A large group of the fixes are in specific extensions. Five plperl entries, a pltcl entry, two dblink entries, two tsvector and text search ranking bugs, and a dict_int bug are in the list. List what is installed:

SELECT extname, extversion FROM pg_extension ORDER BY extname;

If plperl, pltcl or dblink appear and you do not know why, find out who added them. An unused extension is attack surface you can remove with DROP EXTENSION after you confirm nothing depends on it.

Several fixes are in client tools rather than the server. The list includes pg_dump and pg_restore bugs that allow SQL injection or code execution, a reindexdb quoting bug, a vacuumdb bug and a pg_basebackup bug. These run on whatever machine makes your backups, which for many indie developers is their own Mac. Check the version there:

pg_dump --version
pg_restore --version

Update the client tools with whatever installed them (Homebrew, Postgres.app, or your CI image), and do not restore dump files from sources you do not trust. A database dump attached to a support ticket or downloaded from a forum is exactly the kind of file the pg_restore fixes are about.

Step 5: If you are on PostgreSQL 14, plan the major upgrade

A minor update is a restart. A major upgrade moves your data to a new on-disk format, so it needs planning. The supported targets today are 15, 16, 17 and 18. Version 18 is the newest stable release, and 19 is still a release candidate, so pick 17 or 18 for production unless you have a reason to wait for 19.

For a small Docker setup, a dump and restore is usually the simplest path. Roughly:

  1. Put the app in maintenance mode or stop the services that write to the database.
  2. Dump the old database with a current pg_dump: pg_dump -Fc -d "$OLD_URL" -f app.dump
  3. Start a new container on the target version with a fresh, empty volume. Leave the old volume untouched as your rollback.
  4. Restore: pg_restore -d "$NEW_URL" --no-owner app.dump
  5. Run the app's test suite or a manual smoke test against the new database: sign in, create a record, make a purchase in the sandbox.
  6. Point the backend at the new database and watch the logs for a day before deleting anything.

Use pg_dump from the newer version where you can. The --no-owner flag avoids errors when the new server does not have the same roles. If you rely on roles and grants, recreate them before the restore and drop that flag. For bigger databases, pg_upgrade is faster, and PostgreSQL's upgrade documentation covers it.

On a managed service, the provider's upgrade flow handles this. Supabase's guide lists a few things to do first: delete read replicas, drop logical replication slots, remove reg* data types that reference system OIDs, and drop deprecated extensions. Its PostgreSQL 14 notice named timescaledb, plv8, plcoffee and pgjwt among the extensions to remove before moving to 17. Read your provider's page for its own list.

How long each upgrade target is supported

If you are planning a major upgrade anyway, the target decides when you have to do it again. These dates come from the PostgreSQL versioning page as it read on November 16, 2026:

VersionFirst releaseFinal releaseSupport left after November 12, 2026
18September 25, 2025November 14, 2030About 4 years
17September 26, 2024November 8, 2029About 3 years
16September 14, 2023November 9, 2028About 2 years
15October 13, 2022November 11, 2027About 1 year
14September 30, 2021November 12, 2026None

Moving from 14 to 15 is the smallest jump, but it buys one year before the same work comes back. On Supabase, as Step 1 describes, each upgrade takes the project offline while the data is copied, so every extra major upgrade is another maintenance window for your users. That is why this post suggests 17 or 18. If 19 reaches general availability as planned and follows the same five-year policy, it would be supported until around November 2031, but give it a few update releases before you put an app's data on it.

The same page also shows why the version number in the Docker tag matters. A compose file written in 2022 with postgres:14 was a sensible choice at the time. Nothing in the file changes when that version reaches its final release, and the container keeps starting without a warning.

Step 6: Run the post-update steps

Update releases are cumulative, so you do not need to dump and reload for a minor update. But this release fixes several index and backup bugs, and the announcement asks some users to clean up after updating. Here is how to find out whether each step applies to you.

GiST indexes with pg_trgm

If you use pg_trgm for fuzzy search, which AI tools often add for a search bar, reindex any GiST index that uses the gist_trgm_ops operator class. Find them:

SELECT i.indexrelid::regclass AS index_name,
       i.indrelid::regclass AS table_name
FROM pg_index i
JOIN pg_opclass o ON o.oid = ANY (i.indclass::oid[])
WHERE o.opcname = 'gist_trgm_ops';

Then run REINDEX INDEX index_name; for each result, or REINDEX INDEX CONCURRENTLY if you cannot lock the table.

GIN indexes

The release fixes GIN index corruption that could make queries miss rows or return unrelated rows. The announcement says to reindex if you suspect corruption. If search results in your app have ever looked wrong, list your GIN indexes and reindex them:

SELECT i.indexrelid::regclass AS index_name,
       i.indrelid::regclass AS table_name
FROM pg_index i
JOIN pg_class c ON c.oid = i.indexrelid
JOIN pg_am am ON am.oid = c.relam
WHERE am.amname = 'gin';

B-tree indexes on bpchar columns without a length

Reindex B-tree indexes on columns declared as plain bpchar with no length. Columns declared as char(n) are not affected. This query finds the ones that need it:

SELECT DISTINCT i.indexrelid::regclass AS index_name,
       a.attrelid::regclass AS table_name,
       a.attname AS column_name
FROM pg_index i
JOIN pg_class ic ON ic.oid = i.indexrelid
JOIN pg_am am ON am.oid = ic.relam
JOIN pg_attribute a ON a.attrelid = i.indrelid AND a.attnum = ANY (i.indkey::int2[])
WHERE am.amname = 'btree'
  AND a.atttypid = 'bpchar'::regtype
  AND a.atttypmod = -1
  AND NOT a.attisdropped;

On the test server, it found an index on a bpchar column and skipped the char(3) column next to it, which is the behavior you want.

"missing chunk number" errors and backups

If your logs show missing chunk number errors, run REINDEX TABLE your_table;, which also reindexes the table's TOAST table. If you use incremental backups, take a new full backup after updating and base later incremental backups on it.

Partitioned tables

The release now disallows NOT NULL NO INHERIT constraints on partitioned tables in all cases, and the announcement gives a query to find existing ones. Most small app databases do not use partitioning at all, so if you never created a partitioned table you can skip this.

Step 7: Make sure the app itself holds no database password

While you are in the backend, check one thing on the iOS side. An app should talk to an API, never straight to Postgres with a connection string baked into the binary. Anyone can pull strings out of an IPA, and a working database password in there gives them the SQL access that every CVE above needs. Build the app, then search the bundle:

strings -a MyApp.app/MyApp | grep -iE "postgres(ql)?://|sslmode="

Replace MyApp with your app's name and point it at the built .app from your archive or the Products folder. Also search your source for postgres:// and postgresql://. Supabase's anon key in an app is expected and designed to be public, because row level security does the protecting. A service role key or a direct database URL in the app is not, and should be rotated as soon as you find it. If you do find a key, Backdoored Claude Code Extension in Cursor: Check Your Mac, Then Rotate These iOS Keys covers rotating the keys an iOS app depends on.

What strings finds in a Swift binary, and what it misses

The strings check in Step 7 was tested on a Mac with Xcode 26.2 (Swift 6.2.3). A small Swift file with three sample values, none of them a real credential, was built for the iOS Simulator with -O, the optimization level of a Release build and an archive, and once with -Onone, the level of a Debug build:

import Foundation

// Sample values written for this test. None of them is a real credential.
let databaseURL = "postgres://app_user:Sample-Pass-123@db.example.com:5432/app?sslmode=require"
let servicePassword = "Pass-1234"
let joined = "postgres" + "ql://" + "app_user:Joined-Pass@db.example.com/app"

print(databaseURL.count, servicePassword.count, joined.count)

Then the grep from Step 7, plus a search for the password, was run on each binary:

Value in the sourceRelease build (-O)Debug build (-Onone)
Full database URL in one literalFoundFound
URL joined from three pieces with +Found, because the compiler joined the pieces into one stringMissed by the grep, because the pieces stay separate
9-character password on its ownNot foundFound

The missing password is not a fluke. Swift can store a string of up to 15 UTF-8 bytes inside the code itself instead of in the binary's string table, and strings only reads the string table. A second test file confirmed the limit in a Release build: Sample-Pass-015, 15 bytes, did not show up, while Sample-Pass-0016, 16 bytes, did. A database URL is always longer than that, since even postgres://a:b@h is 16 bytes and was found, so the grep in Step 7 does its job for URLs.

Two things follow for your own check. Run it on the archived Release build, which is the binary your users get, not on a Debug build. And do not read a clean strings result as proof that the app holds no password or short key. A short secret can sit in the code where strings never looks, which is why Step 7 also asks you to search the source.

A short checklist

  1. Run SHOW server_version; on every database your app uses, including staging.
  2. Update to 18.7, 17.12, 16.16 or 15.20, or press the upgrade button your provider offers.
  3. If you are on 14 or older, schedule a major upgrade to 17 or 18.
  4. List functions the API roles can execute and revoke anything that runs arbitrary SQL.
  5. Confirm row level security is on for every table the client writes to.
  6. Remove extensions you do not use, and update pg_dump and pg_restore on your Mac and CI.
  7. Reindex gist_trgm_ops and unlengthed bpchar B-tree indexes, and take a fresh full backup.
  8. Search the built app for database URLs and service keys.

FAQ

Is my app in danger if I don't update today?

It depends on who can send SQL to your database. Many of the serious bugs need the ability to run SQL statements or use specific extensions. If only your backend talks to the database and no function lets clients run free SQL, the exposure is smaller, but the row level security fixes still matter for apps that upsert from the client. Update as soon as your setup allows.

Does the iOS app need a new build for this?

No. The fix is on the server and in the client tools you use for backups. You only need a new app build if Step 7 turns up a database URL or a service key inside the app.

Can I jump straight to PostgreSQL 19?

Not yet for production. On November 12, 19 was at release candidate 2, with general availability planned for November 19, 2026 unless the project delays it. The announcement also notes that indexes on full text search, pg_trgm or fuzzystrmatch may need reindexing after a pg_upgrade to 19.

My provider hasn't shipped 17.12 yet. What should I do meanwhile?

Do the steps that do not depend on the server version: revoke dangerous function permissions, check row level security, remove unused extensions, update your local tools, and check the app bundle. Then check your provider's dashboard or status page again in a day or two.

One tool for the scripting side

The version check above is a single Python file. If you want more ready-made scripts to adapt for chores around a small app business, Jerry's Python Automation Scripts Pack: 100 Useful Projects for Freelancers is a $9 ZIP of 100 Python automation projects with source code, READMEs, sample files, tests and a PDF guide. It covers tasks like file organizing, CSV cleanup, PDF text extraction, reports and website monitoring. It has no PostgreSQL or database security tools, so treat it as general automation code, not a fix for anything in this post.

Sources