@dynatrace-oss/dynatrace-mcp-server's create_dynatrace_notebook missing the human-approval gate
A missing human-approval gate on the create_dynatrace_notebook tool allows a caller to create persistent tenant-visible documents containing arbitrary content (including embedded DQL that other users execute when opening the notebook) without operator consent.
dynatrace-mcp-server registers six write tools: send_slack_message, send_email, send_event, create_workflow_for_notification, make_workflow_public, and create_dynatrace_notebook. Five of these call requestHumanApproval() before executing the side-effect, which elicits the operator's explicit consent through the MCP elicitation protocol. The CHANGELOG explicitly states these approval gates were added "to ensure user consent and prevent unintended actions."
create_dynatrace_notebook does not call requestHumanApproval(). The tool was introduced in a separate release from the approval-gate retrofit and was left ungated. As a result, a caller can create persistent, tenant-visible Dynatrace notebooks containing arbitrary content with no operator confirmation. Notebooks can include embedded DQL queries that later execute under the permissions of any tenant user who opens them.
The vulnerable code is in src/index.ts, lines 1563-1601:
```typescript
tool(
'create_dynatrace_notebook',
'Create Dynatrace Notebook',
'Create a new notebook in the Dynatrace platform ...',
{
name: z.string().describe(/* ... */),
description: z.string().optional().describe(/* ... */),
content: z.array(z.object({
type: z.enum(['dql', 'markdown']),
text: z.string(),
})).describe(/* ... */),
},
{
readOnlyHint: false,
},
async ({ name, content, description }) => {
const dtClient = await createAuthenticatedHttpClient(allRequiredScopes);
const data = await createDynatraceNotebook(dtClient, name, content, description);
// No requestHumanApproval() call.
// No destructiveHint annotation.
// Scopes requested are allRequiredScopes (the broadest possible set)
// even though only document:documents:write is needed.
return data
? Document created successfully: ${dtEnvironment}/ui/apps/dynatrace.notebooks/notebook/${data.id}
: 'document creation failed';
},
);
```
By comparison, every other write tool calls requestHumanApproval() as its first action:
send_email (line 1274): const approved = await requestHumanApproval(...);send_slack_message (line 652): const approved = await requestHumanApproval(...);send_event (line 1367): const approved = await requestHumanApproval(...);create_workflow_for_notification (line 1069): const approved = await requestHumanApproval(...);make_workflow_public (line 1118): const approved = await requestHumanApproval(...);Tested end-to-end against a real Dynatrace tenant. The MCP server was started in HTTP mode with the operator's Platform Token:
```bash
export DT_ENVIRONMENT=https://<tenant>.apps.dynatrace.com
export DT_PLATFORM_TOKEN=dt0s16....
npx -y @dynatrace-oss/[email protected] --http --port 3000
```
A single unauthenticated POST from a process with no Dynatrace credentials of its own:
```bash
curl -sS http://127.0.0.1:3000/ \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {
"name": "create_dynatrace_notebook",
"arguments": {
"name": "Unapproved notebook",
"description": "Created without operator approval.",
"content": [
{"type": "markdown", "text": "# This notebook was created without approval"},
{"type": "dql", "text": "fetch logs | limit 10"}
]
}
}
}'
```
The response:
```
event: message
data: {"result":{"content":[{"type":"text","text":"Document created successfully:
https://<tenant>.apps.dynatrace.com/ui/apps/dynatrace.notebooks/notebook/<uuid>"}]},
"jsonrpc":"2.0","id":1}
```
The notebook is visible in the operator's Notebooks app within seconds. No elicitation prompt was sent to any operator client.
By contrast, the same harness invoking send_email or send_slack_message returns:
```
"Operation cancelled: Human approval was not granted for sending this email."
```
The gate logic exists and is wired up for all other write tools - it is simply missing on create_dynatrace_notebook.
This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity low, availability none.
The score comes from this vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
GHSA-pc2w-4mq8-32qw is classified as CWE-862: Missing Authorization. No authorisation check is performed before carrying out a restricted action.
GHSA-pc2w-4mq8-32qw is recorded against 1 package.
Published on 29 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)
@dynatrace-oss/dynatrace-mcp-server has other advisories on record. If you are patching this one, these are worth checking on the same host:
These advisories are the same class of weakness (CWE-862: Missing Authorization) in other software:
Details
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| @dynatrace-oss/dynatrace-mcp-server | — | — |
References
Similar Threats
Free Vulnerability Check
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-pc2w-4mq8-32qw and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.