Image Codecs Behind Recent Web RCEs; Next.js Ships Sandboxed imgOptSafeMode
cramforce · x · 2026-12-03
The Next.js team shipped imgOptSafeMode and next/safe-image-optimization, protecting image processing with memory-safe decoders and process-level sandboxing.
- Why: image formats and metadata (EXIF, ICC, etc.) are complex, and decoding libraries written in C/C++ — sometimes with handwritten assembly for millisecond decode — have spawned vulnerabilities; several web RCEs in the past two months involved image codecs
- How: opting into imgOptSafeMode: true runs image transforms in a seccomp sandbox, the same protection used on Vercel's platform; it will become the default
- Fast delivery leveraged ecosystem work (image-rs, zune-jpeg, rav1d, fastimageresize) plus AI-assisted iteration
More from coding & agent
- SpecGUI: Speculative Decoding Plus Token Pruning Speeds GUI Agents Up to 3.35x — SamsungResearch · 2026-12-03
- Microsoft details Azure Container Apps Sandboxes for isolating untrusted agent-generated code — WirelessLife · 2026-12-03
- Enterprise Agents Lack Context, Not Skill: Auto-Ontology Is the Real Work — blaizedsouza · 2026-12-03
- Anthropic drops 10-guide series on building agent teams with Claude Code, Skills and MCP — blaizedsouza · 2026-12-03
- Agent swarm coordination needs a central context hub, Redux-style: 'mainframe era of AI is ending' — blaizedsouza · 2026-12-03
- Reverse-engineering Grok Bot and personal agents: a playbook from iMessage to memory — socialwithaayan · 2026-12-03