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.

Read this as

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

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.