Quoting Alexander Fridriksson and Jay Miller
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
UUIDv7, newly supported by PostgreSQL 18, leaks record creation timestamps to anyone who can see primary keys, exposing usage patterns and enabling correlation.
Two database experts, Alexander Fridriksson and Jay Miller, warn that UUIDv7, a new type of auto-generated database identifier supported in PostgreSQL 18, can leak private information. Each UUIDv7 embeds a 48-bit Unix timestamp, so if the identifier is visible to app users or API callers, it reveals exactly when each record was created. This is a privacy rather than security flaw: attackers could infer activity patterns or company growth rates.
Teams adopting PostgreSQL 18's new UUIDv7 identifiers face a hidden privacy cost: the ID includes a creation timestamp that leaks to anyone who can see primary keys. Fridriksson and Miller advise against UUIDv7 wherever IDs are exposed externally, since timing metadata enables account correlation and reveals organizational activity patterns. This is a design constraint to raise with engineering before migrating, not an active vulnerability report.
UUIDv7 orders identifiers by embedding a 48-bit Unix timestamp as the most significant bits, which aids indexing but leaks creation time whenever the key is exposed to end users or external APIs. Fridriksson and Miller characterize the risk as privacy-focused de-anonymization and account correlation rather than direct compromise. Their guidance: avoid UUIDv7 for externally exposed primary keys; PostgreSQL 18's native support makes adoption easier, so the caveat matters now.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
UUIDv7 PostgreSQL 18 Alexander Fridriksson Jay Miller WorkOS
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
datasette-charts 0.5a0
Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.