Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102811 Overview
CVE-2026-102811 is a missing authentication vulnerability [CWE-306] in Marmite, a static site generator, through version 0.4.2. The development server exposes the endpoints /__marmite__/content, /__marmite__/config, and /__marmite__/file/ without any authentication. Unauthenticated attackers can create, modify, and overwrite site content and configuration files. The handle_create_content and handle_clone_content functions accept unsanitized path parameters, enabling directory traversal that writes files outside the project directory. By default, the development server bound to 0.0.0.0:8000, exposing the API to any reachable network.
Critical Impact
Remote unauthenticated attackers can overwrite arbitrary files on the host running the Marmite development server, leading to site defacement, configuration tampering, and potential code execution through crafted content files.
Affected Products
- Marmite static site generator (rochacbruno/marmite)
- Versions through and including 0.4.2
- Deployments running the built-in development server (--serve flag)
Discovery Timeline
- 2026-09-29 - CVE-2026-102811 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-102811
Vulnerability Analysis
Marmite ships with a development-only HTTP server that exposes an editor API under the /__marmite__/ path prefix. The endpoints /__marmite__/content, /__marmite__/config, and /__marmite__/file/ accept write operations without validating the caller. Any client that can reach the listening port can create posts, modify site configuration, or overwrite files on disk.
The issue is compounded by the default bind address of 0.0.0.0:8000, which exposes the server on every network interface. Users running the tool on a laptop connected to a hostile network, or on a shared workstation, exposed the API to unauthenticated peers by default.
Root Cause
The root cause is missing authentication [CWE-306] on privileged editor endpoints combined with insufficient path sanitization in the content-handling routines. The handle_create_content and handle_clone_content functions in src/content.rs construct filesystem paths from user-supplied parameters without validating that the resolved path stays within the project directory. Supplying traversal sequences such as ../ in the path parameter allows writes to arbitrary filesystem locations that the server process can access.
Attack Vector
Exploitation requires only network reachability to the development server port. An attacker sends an HTTP request to one of the exposed /__marmite__/ endpoints with a crafted path parameter. The server writes attacker-controlled content to the requested location. Because no authentication is required, exploitation is trivial once the port is reachable.
// Security patch in src/cli.rs — bind development server to loopback by default
#[arg(long, short)]
pub watch: bool,
- /// Serve the site with a built-in HTTP server
+ /// Serve the site with a development-only HTTP server (not for production)
#[arg(long)]
pub serve: bool,
/// Address to bind the server
- #[arg(long, default_value = "0.0.0.0:8000", requires = "serve")]
+ #[arg(long, default_value = "127.0.0.1:8000", requires = "serve")]
pub bind: String,
Source: GitHub commit 303a0bf
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-102811
Indicators of Compromise
- HTTP requests to URIs beginning with /__marmite__/content, /__marmite__/config, or /__marmite__/file/ from unexpected source addresses.
- Path or query parameters containing directory-traversal sequences such as ../ or URL-encoded equivalents (%2e%2e%2f).
- Unexpected new or modified files under the Marmite project directory, especially in content/ or configuration files.
- Marmite processes listening on 0.0.0.0:8000 or another non-loopback interface.
Detection Strategies
- Inspect web-server and reverse-proxy access logs for any request path containing /__marmite__/; the editor API should never be exposed publicly.
- Alert on filesystem writes outside the intended Marmite content directory performed by the marmite binary.
- Enumerate listening sockets on developer and build hosts and flag marmite bound to non-loopback addresses.
Monitoring Recommendations
- Centralize host and application logs from workstations that run Marmite so editor-API requests are visible to detection tooling.
- Monitor egress and ingress to TCP port 8000 on developer subnets and correlate with Marmite process activity.
- Track version metadata for the Marmite binary across the fleet to identify hosts still running 0.4.2 or earlier.
How to Mitigate CVE-2026-102811
Immediate Actions Required
- Upgrade Marmite to a version that includes commit 303a0bf or later, which binds the development server to 127.0.0.1 by default.
- Stop any running marmite --serve process that is bound to a non-loopback interface until the host is upgraded and reconfigured.
- Audit recent modifications in Marmite project directories for files created through the editor API by unauthorized clients.
Patch Information
The upstream fix is delivered in commit 303a0bf2fff4302f4164c0c39932fdffc6683ad4, titled fix: keep development server bound to requested interface (#555). The patch changes the default --bind value from 0.0.0.0:8000 to 127.0.0.1:8000 and documents that the built-in server is development-only. Additional context is available in the VulnCheck advisory and the upstream issue #554.
Workarounds
- Explicitly pass --bind 127.0.0.1:8000 when launching the development server on unpatched versions.
- Restrict inbound access to the Marmite port using a host firewall so only the local machine can connect.
- Never expose the Marmite development server through a reverse proxy or tunnel; use a static hosting target for production content.
- Run Marmite under a least-privileged user account so directory-traversal writes cannot reach sensitive filesystem locations.
# Bind the development server to loopback only on affected versions
marmite --serve --bind 127.0.0.1:8000 /path/to/site
# Optional: block external access to the development port with nftables
sudo nft add rule inet filter input tcp dport 8000 iif != "lo" drop
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

