Day 00 (Zero-Day): Why I Built a 24-Day DevSec Advent Calendar
Launching December 1: an AI-assisted deep dive into my own security knowledge gaps as CVEs skyrocket across the web stack, sharing 24 practical daily briefs with anyone on the same journey.
For a long time, I treated application security the way most frontend and full-stack engineers do: as somebody else’s department.
Backend owns authentication. DevOps owns the firewalls and containers. A security team runs a quarterly scan, opens a few Jira tickets, and the rest of us go back to shipping features.
That mental model fell apart the moment I started paying attention to the sheer speed and volume of vulnerabilities hitting our everyday stack.
The Skyrocketing Pace of CVEs
Security advisories are no longer a slow background trickle you can catch up on once a quarter. The number of high-impact CVEs and supply-chain attacks has skyrocketed, and they are landing straight in the tools working developers touch every morning.
In just a single stretch of late 2026, we watched PostgreSQL drop 52 CVEs in one release, Oracle ship 655 patches peaking at CVSS 9.9, Chromium patch an actively exploited zero-day, Vite ship a CVSS 9.1 dev-server advisory, and attackers leverage stolen GitHub tokens and tampered CI workflows against major engineering organizations (from SAP and 1Password to Todoist and Cursor’s extension marketplace).
None of these are abstract, movie-style mainframe hacks. They live in everyday defaults: a trusted third-party script turning hostile overnight, a vite --host flag committed to package.json, a forgotten GitHub token sitting in a CI pipeline, an npm postinstall script running unchallenged, a poisoned AI agent skill, or a database port exposed past a host firewall.
You cannot outsource awareness of those defaults anymore.
Challenging Myself by Hunting Down My Own Knowledge Gaps
I am not writing this series from an ivory tower as a full-time security researcher. I am a working JavaScript Team Lead and Frontend Architect who looked honestly at the current threat landscape and realized how many blind spots I still had.
Reading security headlines passively creates a dangerous illusion of competence. You nod at a post about Content Security Policy, Subresource Integrity, or OIDC federation, think “good to know,” and never inspect your own Nginx headers, .npmrc, or GitHub Actions YAML.
So I gave myself a personal challenge: identify my own security knowledge gaps across the entire modern web stack, dive deep into 24 concrete topics, test every fix and audit command myself, and share my findings publicly with whoever finds them useful.
Building the full calendar pushed me well outside my frontend comfort zone. Along the way, digging into primary specs, post-mortems, and real edge cases surfaced gotchas I used to completely miss:
- Why
script-srcalone does nothing once an already-trusted vendor script is compromised, and whyconnect-srcandform-actionare what actually block exfiltration. - Why even a closed Shadow DOM Web Component is not a security boundary against a compromised script on the same page.
- Why Docker’s
-p 5173:5173(or5432:5432) port mapping silently bypassesufwon Linux unless you bind strictly to127.0.0.1or omitports:altogether. - Why
.harfiles exported from DevTools leakHttpOnlycookies, and whynpm rebuildsilently skips native binaries whenignore-scripts=trueis in.npmrcunless you pass--ignore-scripts=false. - Why a separate
dns.lookup()beforefetch()still leaves you wide open to DNS rebinding, and why PostgreSQL’s defaultPUBLICTEMPORARYprivilege still lets low-privilege runtime roles create objects unless explicitly revoked.
Every single door in this calendar started as a gap I wanted to close properly instead of hand-waving past.
An AI-Assisted Deep Dive (and a Living Reference)
I also want to be completely transparent about how this journey happened: both this blog and the 24-day deep dive were AI-assisted.
I did not use AI to press a button and publish generic, unverified blog filler. Instead, I used it as a high-speed research partner and sparring reviewer: surfacing primary specs and recent CVEs, poking holes in my assumptions, stress-testing edge cases, and helping structure the site and drafts faster than I ever could alone after work hours.
From there, the real learning happened in the review loop: reading through every topic myself, questioning anything that felt hand-wavy, checking primary sources and real incidents, running commands locally, and tightening the fixes until I actually understood why each default breaks.
Think of these 24 posts as living field notes rather than frozen textbooks. Every article carries a last-updated date (Updated ...) because I plan to keep coming back after the calendar finishes to expand topics with deeper code samples, hands-on recipes, and edge cases as I keep learning (or as readers point out better patterns).
Launching December 1: What Is Inside the 24 Days
Starting December 1, 2026, one new brief unlocks every morning through December 24. The series is organized into four focused weeks covering the full lifecycle of a modern web app:
Week 1 (Days 01 to 06): Frontend & Browser Traps
Hardening the browser layer where users actually enter credentials and card numbers: strict CSP connect-src boundaries, keeping third-party tags off /login and /checkout, locking dev servers to localhost, HttpOnly cookie sessions over localStorage, validating window.postMessage origins, and Subresource Integrity (SRI) for static CDNs.
Week 2 (Days 07 to 12): Secrets, Tokens & AI Tooling
Closing the quiet credential leaks on developer machines and in CI: auditing forgotten GitHub/GitLab PATs, sandboxing untrusted repos, hardening IDE extensions, MCP servers, and AI agent skills, keeping raw secrets out of docs, .har files, and AI prompts, replacing static CI keys with OIDC federation, and scanning Git history properly.
Week 3 (Days 13 to 18): Dependencies & Supply Chain
Locking down everything you pull from npm and container registries: frozen lockfiles and .npmrc release-age cooldowns, killing silent postinstall RCE, patching transitive dependency trees, pinning Docker base images by SHA256 digest, running web containers as non-root, and automating CVE triage against your actual stack.
Week 4 (Days 19 to 24): Backend, Databases & Ops
Defense-in-depth behind the frontend: splitting DB migration users from runtime app roles, firewalling database wire ports (5432, 1521, 6379), blocking SSRF and DNS rebinding on outbound fetches, rebuilding headless Chromium containers on browser CVEs, enforcing server-side tenant RBAC and PostgreSQL RLS to kill IDOR, and wrapping up with a 5-minute holiday freeze checklist on December 24.
The Ground Rules for Every Post
I built this blog (xapu.dev) with zero client-side bloat and strict security headers, and I set four ground rules for every article in the calendar:
- Real-world receipts, not theory: Every topic ties back to documented incidents, CVEs, or primary specifications.
- Copy-pasteable fixes: Real Nginx blocks, TypeScript guards, Dockerfiles, SQL grants, and CI configs you can actually drop into a repo.
- Verify it in 60 seconds: Every post ends with a short terminal command or DevTools check so you can audit your own app immediately.
- Short enough to read with your morning coffee: Three to five minutes per door, zero corporate filler.
Join Me on December 1
Door 01 (CSP connect-src Isn’t Optional) opens on December 1, 2026.
- Bookmark the 2026 DevSec Advent Calendar Hub to track all 24 doors as they unlock.
- Subscribe via RSS if you prefer reading in your feed reader.
- Follow along on social media where I will be sharing a short daily takeaway card for each door, and feel free to push back, share edge cases, or drop your own war stories in the replies.
That is the real point of learning in public: if one of these 24 checks closes a blind spot for you too, saves your team from a Friday-night incident, or sparks a discussion that teaches me a cleaner hardening pattern, the challenge was worth every hour.
See you on December 1.