Security guides
Vulnerabilities, auth, secrets and safe defaults, with real CVEs explained.
137 guides · Newest first · Updated
- Coupon System Design: Single-Use Codes, Stacking Rules and AbuseUnguessable codes, single-use redemption that survives concurrent requests, stacking rules and coupon farming.System design · 19 min read ·
- API Error Handling: Problem Details, Status Codes and Safe RetriesRFC 9457 problem details, choosing 4xx and 5xx status codes, retryable vs terminal errors and messages that leak nothing.Backend · 18 min read ·
- AI Coding Agent Customization Explained: Instruction Files, Hooks and Sub-AgentsInstruction files, custom commands, hooks that gate tool calls, sub-agents and MCP servers, and when to use each.AI and GenAI · 21 min read ·
- Embeddable Widget Design: Script vs Iframe, Shadow DOM and postMessageScript vs iframe embeds, Shadow DOM style isolation, safe postMessage contracts and protecting the host page's Core Web Vitals.Frontend · 22 min read ·
- Browser Extension Architecture: Content Scripts, Service Workers and PermissionsContent scripts, the service worker, the popup, message passing, permissions and store rules.Frontend · 23 min read ·
- AI Agent Payments: Mandates, Spend Limits and Safe RetriesMandates, spend limits, scoped cards and tokens, idempotent retries, refunds and audit trails.AI and GenAI · 18 min read ·
- Link Preview System Design: Unfurling URLs Safely with SSRF DefencesHow an app fetches an untrusted URL, blocks SSRF by resolving, checking and pinning IP addresses, caches previews per URL and handles robots.txt and privacy.System design · 27 min read ·
- Image Pipeline System Design: Resizing, Formats, Cache Keys and Signed URLsPrecomputed vs on-the-fly resizing, AVIF and WebP negotiation, cache keys, original storage and HMAC-signed transform URLs.System design · 23 min read ·
- How SSH Works: Key Exchange, Host Keys, Channels and Agent ForwardingKey exchange, host keys and known_hosts, public-key login, channels and tunnels, and why ProxyJump beats agent forwarding.Backend · 25 min read ·
- Authlib's October 2026 Vulnerability Explained: When No Signature Meant ValidWhy an empty signature list passed, who is affected and how to upgrade to 1.9.1.Backend · 22 min read ·
- Linux's October 2026 TCP Use-After-Free Explained: How to Patch CVE-2026-98432How the handshake race works, which kernels are fixed and how to patch.Backend · 20 min read ·
- Node-Forge's October 2026 Vulnerability Explained: When a Leaf Acts as a CAHow retired extension IDs let a leaf certificate act as a CA, why zero-round PKCS#12 files passed any password, and how to upgrade to 1.4.2.Backend · 23 min read ·
- OAuthLib's October 2026 Vulnerability Explained: Scopes for the Wrong ClientHow token grants checked the wrong client, who is exposed, and how to upgrade to 4.0.1 safely.Backend · 19 min read ·
- Pyasn1's October 2026 Vulnerability Explained: Why Decoding Went QuadraticWhat quadratic-time decoding is, which packages pull pyasn1 in and how to upgrade and verify.Backend · 21 min read ·
- Tornado's October 2026 Security Update Explained: Keep the Event Loop FreeWhat Tornado 6.6 fixes, why one request could freeze a server, and how to upgrade safely.Backend · 21 min read ·
- API Key Management Explained: Formats, Hashing, Rotation and LeaksHow to format, store, scope, rotate and revoke the keys your API gives customers.Backend · 25 min read ·
- MuPDF's October 2026 PDF Encryption Flaw Explained: A 9-Bit AES KeyWhy clock-seeded keys left AES-256 PDFs guessable, how to check your version and how to re-encrypt files.Backend · 15 min read ·
- Bot Detection System Design: Signals, Risk Scores and Tiered ResponsesThe signals worth collecting, how a risk score picks between allow, throttle, challenge and block, where fingerprinting meets privacy limits, and how to measure false positives.System design · 29 min read ·
- Terraform State Explained: Locking, Drift, Imports and RecoveryWhat the state file stores, why it leaks secrets, how backends, locking and drift checks work, and how to recover lost state.Backend · 29 min read ·
- Black's October 2026 GitHub Action Flaw Explained: When a PR Picks CI InstallsHow one pyproject.toml line let a pull request choose what CI installs, and how to harden workflows.Backend · 18 min read ·
- Docker Content Trust Shutdown (December 2026) Explained: Digests and SignersWhat notary.docker.io did, how to find DCT in your pipelines, and how to move to digests plus Cosign or Notation.Backend · 19 min read ·
- DOMPurify's October 2026 Bypasses Explained: Audit Your Sanitiser ConfigWhich non-default options were exposed, what 3.4.17 fixes and how to audit your own config.Frontend · 18 min read ·
- Drupal's October 2026 Field UI RCE Explained: Why Callbacks Need an AllowlistHow a table row's callback ran without a trust check, who is exposed, and how to check your version and patch.Backend · 18 min read ·
- GitPython's October 2026 Submodule Flaw Explained: Validate Before You CloneHow a submodule path under .git/hooks was cloned before it was rejected.Backend · 14 min read ·