# CVE-2026-54162: Ember: Unneutralised terminal escape/control sequences from Caddy logs injected into the operator's TUI


- **Severity:** Medium 4.7 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 28 Oct 2026
- **Updated:** 29 Oct 2026
- **Also known as:** GHSA-x3g7-qrwc-f6c5, GO-2026-6270

## What is CVE-2026-54162?

CVE-2026-54162 is a medium-severity vulnerability in alexandre-daubois ember, published on 28 Oct 2026. 

### Official 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.

Weakness: CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences)

## Which versions are affected by CVE-2026-54162?

3 open source packages ship an affected version, including github.com/alexandre-daubois/ember.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/alexandre-daubois/ember` | Go | All versions | 1.4.2 |
| `github.com/alexandre-daubois/ember` | Go | All versions | 1.4.2 |
| `github.com/alexandre-daubois/ember` | Go | All versions | 1.4.2 |

## How do I fix CVE-2026-54162?

Upgrade github.com/alexandre-daubois/ember to 1.4.2 or later.

## Is CVE-2026-54162 being exploited?

There is no known exploitation of CVE-2026-54162 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-54162 and fix it if it is affected.

What it is: CVE-2026-54162 is a medium-severity vulnerability in alexandre-daubois ember, published on 28 Oct 2026. 
Exploitation: There is no known exploitation of CVE-2026-54162 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/alexandre-daubois/ember (Go): affected all versions; fixed in 1.4.2
- github.com/alexandre-daubois/ember (Go): affected all versions; fixed in 1.4.2
- github.com/alexandre-daubois/ember (Go): affected all versions; fixed in 1.4.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-54162/ (Markdown: https://insights.sbomify.com/CVE-2026-54162/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-54162
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-54162
- OSV: https://osv.dev/vulnerability/CVE-2026-54162

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-54162/
Summaries are generated and may contain mistakes; the official description above is the record.
