---
title: "Dalva CMS security: architecture, not plugins"
description: "Content as data, sandboxed plugins, enforced 2FA, strict CSP and no common RCE paths. See how Dalva protects your site, layer by layer."
url: "https://dalva.io/security"
language: "en"
type: page
published: 2026-11-24
updated: 2026-11-24
translations:
  - language: "pl"
    url: "https://dalva.io/pl/bezpieczenstwo.md"
---

# Security is the architecture

Not a plugin. Dalva is built so the usual ways into a CMS simply do not exist.

## Six layers between an attacker and your site

Each layer assumes the one before it can fail. An attack has to beat all of them, not just one.

1. **Strict browser policy**: A Content Security Policy without inline scripts, HSTS, triple CSRF protection and no framing of the admin panel. (stops: Injected scripts)
2. **Phishing-resistant sign-in**: Argon2id hashing, enforced 2FA per role, passkeys, breached-password checks, rate limits and re-authentication for sensitive actions. (stops: Stolen passwords)
3. **Least-privilege roles**: Granular permissions for people and scoped keys for AI. Publishing by AI always waits for a human. (stops: Over-reaching access)
4. **Content as validated data**: Pages are JSON blocks checked against strict schemas, never stored HTML, so stored XSS is ruled out by design. (stops: Stored XSS)
5. **Sandboxed extensions**: Plugins run in WebAssembly with memory and time limits, no file system or database, and network only to declared hosts. (stops: Malicious plugin code)
6. **Tamper-proof audit log**: Every sensitive action is recorded, and the database itself blocks edits and deletes of the log. (stops: Erased traces)

## Verified, not promised

- **0**: lines of PHP or server-side templates fed by user content
- **24/24**: findings from an independent security review fixed, each with a regression test
- **0**: uses of 'unsafe-inline' or 'unsafe-eval' in the site's Content Security Policy
- **Append-only**: audit log: updates and deletes are blocked by database triggers

## Also built in, not bolted on

### SSRF protection

Imports and webhooks resolve DNS once and refuse private networks, including DNS rebinding tricks.

### Encrypted secrets

API tokens of add-ons are encrypted at rest and never shown to AI agents or exported.

### Signed webhooks

Every outgoing request carries an HMAC signature your systems can verify.

### Rate limits everywhere

Logins, forms, the API and AI keys have limits, shared across instances with Redis.

### AI kill switch

One click revokes every AI key, ends all sessions or disables all plugins.

### Least-privilege database

The application role cannot alter the schema or rewrite the audit trail.

## Nothing on the server runs what users upload

Remote code execution is how most CMS servers are taken over. Dalva removes the usual paths instead of filtering them.

- No PHP, no theme file editor and no plugin installs that run code on the server
- Uploads are re-encoded images; SVG, HTML and scripts are rejected, and media is served with its own sandboxing policy
- Untrusted input is only ever parsed as JSON and validated against strict schemas, never evaluated or deserialized into code
- Plugin code runs in QuickJS compiled to WebAssembly, in a separate thread, with no access to Node.js
- Containers run read-only, as a non-root user, with every Linux capability dropped and no shell in the image

## Common attacks, side by side

| Attack | Typical WordPress site | Dalva |
| --- | --- | --- |
| **Malicious or vulnerable plugin** | Runs with full access to files and database | Sandboxed, declared permissions, human review per version |
| **Stored XSS** | HTML in posts and plugin fields | Content is validated data, strict CSP blocks inline scripts |
| **File upload to RCE** | PHP files in uploads are a classic entry point | Only re-encoded images, read-only containers |
| **Credential stuffing** | 2FA only through extra plugins | Enforced 2FA, passkeys, breached-password checks, rate limits |
| **Compromised AI agent or API key** | Not covered | Scoped keys, approval mode, IP allow-lists, instant revocation |
| **Silent tampering** | Logs can be edited or disabled | Append-only audit log enforced by the database |

> **What we do not claim:** No software is unbreakable. Dalva reduces the attack surface and limits the damage of any single failure, and ships emergency switches for the rest: revoke all AI keys, end all sessions, disable all plugins.

### Is Dalva immune to remote code execution?

No system can promise that. Dalva removes the common RCE paths of a CMS (server-side plugins, executable uploads, unsafe deserialization) and contains what is left with a WebAssembly sandbox, read-only containers and least-privilege database access.

### How do updates work?

One versioned release and one command, ./dalva update. There are no dozens of plugins to patch separately, and dependencies are monitored automatically.

### How do I report a vulnerability?

Please report it privately through the contact page, not in public issues. We confirm reports within 48 hours and share a fix plan within 7 days.

## Run a site you do not have to babysit

Install Dalva and get these protections by default, without extra plugins.

[Get started free](https://dalva.io/pricing) · [Talk to us](https://dalva.io/contact)
