This release includes 3 security fixes for security teams reviewing exposed deployments.
Topics
Affected surfaces
Summary
AI summaryAdded a configurable AI chat widget and eight fork workspace management tools.
Full changelog
What's New in v4.2.0
AI Chat Widget
Add a floating AI assistant to any page with a single <script> tag. Visitor queries run a two-phase pipeline: hybrid semantic+fulltext search retrieves relevant excerpts, then Claude Haiku synthesizes a conversational answer streamed live via SSE. Works without an Anthropic key as a pure search experience. Fully configurable from the admin panel — title, colors, position, prompt templates, rate limits.
Fork MCP Tools (8 new tools → 72 total)
Eight dedicated tools for fork workspace management: list_forks, create_fork, get_fork, fork_page, remove_fork_page, merge_fork, archive_fork, delete_fork. Forks let you stage and preview sets of page edits before merging to live.
Security Hardening
SecurityHeadersmiddleware: CSP (path-aware admin vs. public policy), HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-PolicySESSION_SECRETenforced at 32+ characters; server refuses to start with a weak secret- Trusted proxy config:
TrustFlyProxyreads the unspoofableFly-Client-IPheader in cloud deployments - Chat endpoint: separate per-IP (5/min) and global (30/min) rate limiters, prompt injection defense
- API body size cap on all endpoints
Performance
- Optimized content query paths
- Bulk content operations (up to 100 pages per call)
export_contentfor transform/re-import pipelines
Previous release: v1.1 · Full changelog: CHANGELOG.md
Security Fixes
- `SecurityHeaders` middleware adds CSP, HSTS, X-Frame-Options, Referrer-Policy
- `SESSION_SECRET` now required to be at least 32 characters; server refuses start with weak secret
- Chat endpoint includes per‑IP (5/min) and global (30/min) rate limiters plus prompt injection defense
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About jonradoff/lightcms
AI-native CMS with 72 MCP tools for managing websites through natural language. Create and publish content, manage templates, assets, snippets, themes, collections, redirects, and multi-site forks — with full content versioning and semantic search.
Beta — feedback welcome: [email protected]