November 25, 2026

Omarchy closes a hole that let a crafted plugin manifest pose as first-party

0

A fake header line inside a third-party manifest.json could claim omarchy.* IDs and trusted capabilities. The scan now frames each manifest by its exact line count.

GitHub card for pull request 19961 in omacom/omarchy, hardening plugin manifest scan framing and fixing plugin lifecycle races

Image: omacom/omarchy pull request #19961 (GitHub)

Omarchy’s plugin system just got a security fix. On November 24, 2026, DHH merged pull request #19961 into the quattro branch, titled “Harden plugin manifest scan framing and fix plugin lifecycle races.” It’s coming in the next version.

The PR describes the problem as an “in-band delimiter injection vulnerability” in PluginRegistry. When the shell scanned for plugins, rescan() printed the raw body of each manifest.json separated only by text markers: a ===<kind>::<dir>=== header and an === EOM === end line. Nothing stopped a manifest from containing one of those markers itself.

According to the PR, a crafted third-party manifest.json with a synthetic ===firstparty::...=== line could spoof __isFirstParty = true, hijack omarchy.* IDs and inherit trusted authentication capabilities. In other words, a plugin you installed from someone else could pass itself off as one of Omarchy’s own. The PR doesn’t mention any exploitation.

The fix is to stop trusting markers inside the payload. Each manifest is now framed by its exact line count, read with the bash builtin mapfile -t and, the PR notes, “zero extra subprocesses,” so a line from a manifest can never be parsed as a header. On top of that come a firstPartyDir containment check, a NUL-delimited find for first-party plugins, and the rejection of control characters, backslashes and prototype-polluting plugin IDs.

The same PR also fixes several races in how shell.qml loads plugins. In-flight loads in ensureService() and loadPluginWidget() now carry per-load tokens, so overlapping rescans or reloads can’t create duplicate services or register stale components after teardown. Panels kept across a rescan get a fresh shell, manifest and service, so they can’t hold on to a revoked PluginShellApi after a capability change, and a normal rescan no longer runs its sync steps twice. The plugin registry tests were updated along with it, and the PR description ends with “Verified by Codex and Claude.”

It’s part of a wider hardening batch DHH merged the same day. #19965 removes eval from the launchers and fixes injection, path traversal and temporary-file races across desktop launchers, desktop entry installers and removers, and the Zoom and HEY protocol handlers. #19962 hardens lock files, launcher removal, SSH key setup and the GeForce NOW installer, and #19998 makes the lock commands refuse lock paths that aren’t regular files and validate the runtime directory they live in.

The timing matters, with plugins everywhere right now thanks to the second plugin contest. Until the next version lands, it’s a good reminder that a plugin is code running in your shell: install the ones whose source or author you trust. Our guide on how to find, install, update and remove Omarchy plugins covers the basics.

Source: https://github.com/omacom/omarchy/pull/19961

Leave a Reply

Your email address will not be published. Required fields are marked *