CVE-2026-54162

Ember: Unneutralised terminal escape/control sequences from Caddy logs injected into the operator's TUI

Published Oct 28, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
Ember is a real-time terminal dashboard for Caddy servers with FrankenPHP support. Prior to 1.4.2, interactive TUI row formatters pass Caddy access-log fields, particularly the request URI, through the `fitCellLeft` render helper without neutralizing terminal escape or control sequences. An unauthenticated remote client can place ANSI, OSC, or CSI control bytes in an ordinary HTTP request target. Caddy JSON-escapes those bytes, `ParseLogLine` decodes them back into raw controls, and the formatters concatenate them into `View()` output reaching `os.Stdout`. When the operator views the default `Logs` tab, the terminal interprets these sequences, allowing monitoring-dashboard spoofing, clipboard hijacking through `OSC 52`, and window-title spoofing through `OSC 0/2`. This works even with a loopback-only log listener because the input arrives through normal Caddy access logs. `Certificates` and `Routes` share secondary unneutralized render sinks. The `--json`, `--once`, and daemon `--expose` modes are unaffected because they do not render an interactive terminal. Consequences depend on the terminal emulator and usually require further operator action to escalate; this is not general-purpose remote code execution. This issue is fixed in version 1.4.2.

Analysis

AI-generated

Technical impact

Ember, a real‑time terminal dashboard for Caddy, failed to neutralize terminal escape and control sequences present in Caddy access logs. An unauthenticated external client can embed ANSI, OSC, or CSI bytes into an HTTP request target. Caddy escapes these bytes into JSON, then Ember decodes them and renders them to stdout. The terminal emulator interprets the injected sequences, enabling the attacker to spoof the monitoring dashboard, hijack the clipboard via OSC 52, or spoof the window title using OSC 0/2. The vulnerability does not provide generic remote code execution but can lead to UI manipulation and information leakage if the operator interacts with the output.

Affected Systems

Ember products from the alexandre-daubois vendor, specifically all releases prior to version 1.4.2.

Risk and Exploitability

The CVSS score of 4.7 classifies this issue as low severity. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog, indicating limited evidence of exploitation in the wild. The attack requires an unauthenticated remote client to send a crafted HTTP request, and the attacker must have an operator view the affected Logs tab; thus the likelihood of successful exploitation is low but still notable in environments where operators access the dashboard with full terminal privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Ember to version 1.4.2 or later to eliminate unneutralized terminal sequences.
  • Restrict external access to the Caddy server’s access logs and the Ember operator interface, using firewall or network segmentation.
  • Configure or replace the terminal emulator used by operators with one that filters or blocks control sequences, or enforce output sanitization within Ember where possible.

Generated by OpenCVE AI on October 28, 2026 at 21:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x3g7-qrwc-f6c5 Ember has unneutralized terminal escape/control sequences from Caddy logs injected into the operator's TUI
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Alexandre-daubois
Alexandre-daubois ember
Vendors & Products Alexandre-daubois
Alexandre-daubois ember
Type Values Removed Values Added
Description Ember is a real-time terminal dashboard for Caddy servers with FrankenPHP support. Prior to 1.4.2, interactive TUI row formatters pass Caddy access-log fields, particularly the request URI, through the `fitCellLeft` render helper without neutralizing terminal escape or control sequences. An unauthenticated remote client can place ANSI, OSC, or CSI control bytes in an ordinary HTTP request target. Caddy JSON-escapes those bytes, `ParseLogLine` decodes them back into raw controls, and the formatters concatenate them into `View()` output reaching `os.Stdout`. When the operator views the default `Logs` tab, the terminal interprets these sequences, allowing monitoring-dashboard spoofing, clipboard hijacking through `OSC 52`, and window-title spoofing through `OSC 0/2`. This works even with a loopback-only log listener because the input arrives through normal Caddy access logs. `Certificates` and `Routes` share secondary unneutralized render sinks. The `--json`, `--once`, and daemon `--expose` modes are unaffected because they do not render an interactive terminal. Consequences depend on the terminal emulator and usually require further operator action to escalate; this is not general-purpose remote code execution. This issue is fixed in version 1.4.2.
Title Ember: Unneutralised terminal escape/control sequences from Caddy logs injected into the operator's TUI
Weaknesses CWE-150
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N'}

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 29, 2026, 6:31 PM
Reserved
Jun 11, 2026, 9:46 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 8:18 PM
Modified
Oct 29, 2026, 7:17 PM