← MCP server and skill grades

power-platform-skills

microsoft/power-platform-skills

D
Type
MCP server
Scanned
Nov 18, 2026
Version
05b634df9272
Files read
3377

Power Platform Skills is a collection of Microsoft plugins and servers that let AI coding assistants build, test, and deploy apps, websites, and workflows on Microsoft Power Platform. The biggest risk is that opening an untrusted project folder can automatically run malicious code on your computer, because its startup helpers download unpinned packages and can load scripts or settings directly from that folder.

What it can reach

Files
Reads, edits, and deletes project files and solution packages, and saves local flow backups, connection profiles, temporary files, and telemetry logs in your home and app-data folders.
Network
Connects to Microsoft Power Platform, Dataverse, Microsoft Graph, Azure Key Vault, and Microsoft Learn APIs, downloads packages and templates from npm, NuGet, and GitHub, and sends default-on usage telemetry to Microsoft.
Shell commands
Runs local command-line programs, build tools, and scanners, including Node.js, npm, .NET tools, Git, PowerShell, Azure CLI, Power Platform CLI, and mobile build utilities.
Secrets
Uses active sign-in sessions and tokens from Azure CLI, Power Platform CLI, GitHub CLI, and local auth caches to act on your cloud accounts, and configures secret references in Azure Key Vault and Dataverse.
Browser
Launches and controls Chrome, Edge, or Chromium through Playwright to preview and test apps, and opens local reports, portals, and sign-in pages in your default browser.

Findings

6 high10 medium20 low6 info
  1. HighUnpinned MCP server package executed via dnx with workspace NuGet config resolution

    plugins/canvas-apps/.mcp.json:5

    When the Canvas Apps plugin loads, it starts its MCP server using dnx with --yes and no pinned package version, relying on NuGet's default source discovery. Because NuGet reads nuget.config files from the current working directory upward, opening a cloned or untrusted repository that includes a malicious nuget.config advertising a higher version of Microsoft.PowerApps.CanvasAuthoring.McpServer can cause dnx to download and run attacker code automatically at session startup, before any tool approval prompt.

    Fix: Pin an exact verified version of Microsoft.PowerApps.CanvasAuthoring.McpServer, restrict package resolution to trusted user-level NuGet sources (ignoring workspace nuget.config files), or bundle a verified server binary inside the plugin.

  2. HighModel Apps Playwright MCP downloads and executes unpinned @latest npm package with lifecycle scripts enabled

    plugins/model-apps/scripts/launch-playwright-mcp.js:20

    Whenever the Model Apps Playwright MCP server starts, it runs npx -y @playwright/mcp@latest without pinning an exact version, passing --ignore-scripts, or pinning --registry. Unlike plugins/power-pages/scripts/launch-playwright-mcp.js (which pins a reviewed version and disables lifecycle scripts), resolving @latest forces a live registry check on startup in the user's working directory, allowing either a compromised upstream npm publish or a malicious .npmrc registry override in an untrusted workspace to download and execute arbitrary code automatically.

    Fix: Pin @playwright/mcp to a specific reviewed version, pass --ignore-scripts to npx, and avoid reading untrusted workspace .npmrc registry overrides, matching the hardened launcher in plugins/power-pages/scripts/launch-playwright-mcp.js.

  3. HighSymlink-following writes via predictable .tmp files in ALM helpers

    plugins/power-pages/scripts/lib/check-alm-plan.js:279

    During Phase 0 plan checks, check-alm-plan.js parses docs/.alm-plan-data.json (preserving all attacker-controlled JSON keys) and writes it back to a predictable docs/.alm-plan-data.json.tmp path using fs.writeFileSync without exclusive creation (wx) or symlink checks. If a cloned repository contains an Approved plan alongside a git-tracked symlink at docs/.alm-plan-data.json.tmp pointing outside the repo (such as ~/.claude/settings.json), running the Phase 0 check overwrites the external target file with attacker-controlled JSON. The same predictable .tmp write pattern appears in refresh-alm-plan-data.js, set-plan-status.js, bump-solution-version.js, and strip-invalid-secret-values.js.

    Fix: Verify with fs.lstatSync and fs.realpathSync that target paths and parent directories stay inside projectRoot without symlinks, and create uniquely named temporary files with flag 'wx' before renaming.

  4. HighWindows current-directory binary hijacking in Power Pages CLI helpers

    plugins/power-pages/scripts/lib/power-platform-api.js:24

    On Windows, power-platform-api.js runs az via execSync (cmd.exe), and sibling helpers list-environments.js, cli-tenant-alignment.js, pac-command.js, pac-bap-shim.js, and install-pipelines-app.js invoke pac or pac.exe by bare name or through cmd.exe without setting NoDefaultCurrentDirectoryInExePath=1 or resolving executables strictly from absolute PATH entries. Unlike the pcf and model-apps plugins (which use process-runner.js to block current-directory lookup), running these Power Pages helpers on Windows while the working directory is an untrusted project allows a malicious az.cmd, pac.cmd, or pac.exe in the project folder to execute arbitrary code.

    Fix: Route all az and pac child-process invocations in plugins/power-pages/scripts/lib/ through a shared runner that resolves executables only from absolute PATH directories, sets shell: false, and sets NoDefaultCurrentDirectoryInExePath=1 when invoking cmd.exe.

  5. HighUnresolved CLI execution via cmd.exe allows working-directory binary hijacking on Windows

    plugins/power-pages/scripts/lib/validation-helpers.js:366

    runAzureCli invokes cmd.exe /c az.cmd by bare name, and getEnvironmentUrl and getPacAuthInfo invoke bare pac commands via execSync. On Windows, cmd.exe searches the current working directory before PATH, and PostToolUse validation hooks (such as validate-solution.js and validate-datamodel.js) call these helpers inside the project folder, allowing a malicious az.cmd or pac.cmd in an untrusted repository to execute automatically.

    Fix: Resolve az and pac to absolute paths from trusted PATH entries before execution (as plugins/model-apps/scripts/lib/process-runner.js and telemetry native-exec.js already do) and avoid bare command names in cmd.exe or execSync.

  6. HighSecurity scanner automatically loads untrusted trivy.yaml and ignore files from scanned project

    plugins/power-pages/skills/scan-code/scripts/run-trivy.js:61

    When scanning a Power Pages project, run-trivy.js automatically passes projectRoot/trivy.yaml via --config, along with trivy-secret.yaml and .trivyignore. Because Trivy binds all unset CLI flags from --config, an untrusted repository's trivy.yaml can set output to overwrite arbitrary files on the user's machine (while returning empty stdout that run-trivy.js treats as zero findings), load custom WASM modules, contact attacker registries, or silence vulnerability and secret detections.

    Fix: Do not auto-load trivy.yaml, trivy-secret.yaml, or ignore files from the target projectRoot unless explicitly approved by the user, and pass explicit safe defaults on the CLI.

  7. MediumMCP server bootstrap falls back to executing server/mcp.mjs from the current working directory

    plugins/power-automate/.mcp.json:7

    The FlowAgent MCP launcher (and the identical launcher in plugins/process-intelligence/.mcp.json) resolves its root directory using PLUGIN_ROOT, then CLAUDE_PLUGIN_ROOT, and finally process.cwd(), then dynamically imports server/mcp.mjs from that path. If an MCP client or host loads .mcp.json without setting either plugin-root environment variable while the user is inside an untrusted project directory, Node will execute <cwd>/server/mcp.mjs automatically on startup. Other plugins in this repository (power-pages and model-apps) explicitly fail closed instead of falling back to process.cwd().

    Fix: Remove the process.cwd() fallback in both plugins/power-automate/.mcp.json and plugins/process-intelligence/.mcp.json and exit with an error when neither PLUGIN_ROOT nor CLAUDE_PLUGIN_ROOT is set.

  8. MediumALM skills print live Azure bearer tokens into AI context and pass them as CLI arguments

    plugins/power-pages/skills/deploy-pipeline/SKILL.md:159

    The Power Pages ALM skills (deploy-pipeline, configure-env-variables, and ensure-pipelines-host) instruct the agent to output raw Azure AD / Dataverse / BAP access tokens to stdout, store them in conversation variables, and pass them on command lines via --token or --bapToken. This sends live bearer credentials to the external AI model provider, saves them in local chat transcripts, and exposes them in the operating system process list (ps) to other local processes.

    Fix: Acquire tokens internally inside the Node helper scripts (as create-site and audit-permissions already do) instead of returning raw access tokens to stdout or accepting --token on the command line.

  9. MediumLive OAuth bearer tokens are printed to agent stdout and passed in CLI arguments

    plugins/power-pages/skills/import-solution/SKILL.md:113

    Several Power Pages ALM skills (import-solution, export-solution, plan-alm, setup-pipeline, setup-solution, and force-link-environment) and plugins/mobile-apps/scripts/verify-dataverse-access.js output raw Dataverse and Power Platform OAuth access tokens to stdout so the AI agent captures them, and then pass those tokens via --token and --bapToken CLI flags. This sends live cloud bearer tokens to the external AI model provider, stores them in plaintext agent session transcripts on disk, exposes them in the OS process list, and leaves them in the prompt context where a later prompt injection could read them.

    Fix: Acquire Azure CLI tokens internally inside the Node.js helper scripts (as plugins/model-apps/scripts/dataverse-request.js and sdk-http-client.js do) rather than printing tokens to stdout or accepting --token on the command line.

  10. MediumPredictable shared temporary directory reused without ownership checks in security-review

    plugins/power-pages/skills/security-review/SKILL.md:83

    Phase 1.2 of the security-review skill instructs the agent to write all intermediate JSON scan results into a fixed <SYSTEM_TEMP>/security-review/ path and explicitly tells it to reuse the existing folder if already present rather than recreating it. On multi-user Linux systems where <SYSTEM_TEMP> is /tmp, another local user can pre-create /tmp/security-review/ to read private vulnerability findings, tamper with scan JSON before report rendering, or place symlinks at predictable output filenames such as scan-code.json.

    Fix: Create a unique private temporary directory per run using mktemp -d or fs.mkdtempSync with 0700 permissions (matching plugins/mobile-apps/scripts/app-docs.js), and verify ownership before writing.

  11. MediumDataverse helper scripts send Azure bearer tokens to unvalidated environment URLs

    plugins/power-pages/scripts/verify-dataverse-access.js:24

    Unlike check-available-languages.js, poll-async-operation.js, and doRequest() in dataverse-request.js, which enforce validateDataverseEnvironmentUrl() before attaching credentials, verify-dataverse-access.js accepts any URL argument without checking that it is HTTPS or a trusted Dataverse domain, acquires a token via getAuthToken(envUrl), and sends it in an Authorization: Bearer header. Similarly, list-custom-actions.js and create-environment-variable.js only check for an https:// prefix rather than a Dataverse host (and create-environment-variable.js also posts the variable value), while dataverse-request.js calls getAuthToken(envUrl) in main() before doRequest() validates the host. If prompt injection tricks the agent into passing an attacker-controlled URL, the script can request and transmit tokens or variable values to an untrusted endpoint.

    Fix: Call validateDataverseEnvironmentUrl(envUrl) at the entry point of verify-dataverse-access.js, list-custom-actions.js, create-environment-variable.js, and main() in dataverse-request.js before calling getAuthToken() or makeRequest().

  12. MediumPower Pages version check runs git fetch inside the user's workspace repository instead of the plugin directory

    plugins/power-pages/scripts/check-version.js:124

    Unlike plugins/pcf/scripts/check-version.js, which anchors git commands with cwd: pluginRoot, plugins/power-pages/scripts/check-version.js runs git rev-parse, git fetch origin main --quiet, and git show without setting cwd. When a skill runs this script from the user's project directory, it silently makes an unrequested network connection to whatever origin remote is configured in the workspace repository and, if run inside an extracted archive containing a crafted .git/config (such as core.sshCommand or core.fsmonitor), can execute attacker-controlled commands.

    Fix: Pass cwd: pluginRoot and use execFileSync without a shell for all git invocations in plugins/power-pages/scripts/check-version.js, matching plugins/pcf/scripts/check-version.js.

  13. MediumMissing Dataverse and BAP URL allowlist checks risk bearer token exfiltration

    plugins/power-pages/scripts/lib/discover-site-components.js:193

    Several Power Pages ALM and pipeline helpers accept an environment or host URL alongside a bearer token and send Authorization: Bearer headers without calling validateDataverseEnvironmentUrl or validateBapUrl—including discover-site-components.js, check-alm-plan.js, check-env-host-binding.js, discover-pipelines-host.js, create-deployment-environment.js, create-deployment-pipeline.js, create-stage-run.js, force-link-environment.js, poll-deployment-status.js, poll-validation-status.js, check-solution-installed.js, resolve-env-by-id.js, and the --token paths of bump-solution-version.js, add-components-to-solution.js, create-solution.js, create-env-var-definition.js, download-export-data.js, export-solution-async.js, and estimate-solution-size.js (plus detect-project-context.js, which reads environmentUrl from powerpages.config.json unvalidated). If prompt injection or a crafted project config supplies a non-Microsoft URL when a token is passed, the script sends the user's bearer token to that host.

    Fix: Validate and canonicalize every envUrl, hostEnvUrl, and environmentUrl with helpers.validateDataverseEnvironmentUrl and every bapBase with helpers.validateBapUrl inside each helper before attaching Authorization headers.

  14. MediumOAuth access and refresh tokens cached at a predictable path in shared os.tmpdir()

    plugins/power-pages/skills/manage-governance/scripts/tip-auth.js:102

    tip-auth.js stores delegated Power Pages OAuth access tokens and long-lived refresh tokens in plaintext at a fixed filename in the shared system temp directory (os.tmpdir()/pp-gov-tip-token.json). Because writeCache uses fs.writeFileSync without exclusive creation (wx), symlink checks, or ownership checks (and 0o600 does not restrict ACLs on Windows or change permissions on pre-existing files), another local user on a shared system can pre-create the file to steal refresh tokens or plant tokens to hijack governance sessions.

    Fix: Store token caches inside a per-user 0700 directory under the user's home/config folder using atomic exclusive temp-file writes and strict Windows ACLs, or rely on OS keychain storage.

  15. MediumLive Dataverse OAuth bearer token printed to stdout and passed via CLI arguments

    plugins/power-pages/scripts/lib/verify-alm-prerequisites.js:181

    verify-alm-prerequisites.js includes the raw Azure CLI Dataverse bearer token in the JSON printed to stdout, and sibling ALM scripts (such as verify-host-readiness.js --hostToken) accept or require the token on process.argv. When an AI coding agent runs these scripts, the live token is sent into the LLM prompt context and session logs and is exposed to other local users via the OS process table.

    Fix: Acquire tokens inside each Node process (as resolve-non-spa-context.js does) instead of printing tokens to stdout or passing them on command-line flags.

  16. MediumGenerated AI search citation links allow unvalidated URL schemes and external redirects

    plugins/power-pages/agents/ai-webapi-integration.md:816

    The ai-webapi-integration agent and framework-equivalents.md instruct the coding agent to copy resolveCitationHref verbatim to render inline [[N]](url) citations from the /_api/search/v1.0/summary LLM output. When a citation URL does not match a Dataverse knowledge-article GUID, resolveCitationHref returns the raw URL without checking its scheme or host, allowing prompt-injected search queries or indexed records to place javascript:, data:, or phishing URLs into rendered anchor tags in React, Vue, and Astro sites.

    Fix: Validate parsed URLs in resolveCitationHref (in both ai-webapi-integration.md and framework-equivalents.md) so only http:, https:, or same-origin root-relative paths are rendered, falling back to '#' otherwise.

  17. LowDeployment diagnostic skill uploads to the live environment without confirmation

    plugins/power-pages/skills/diagnose-deployment/SKILL.md:77

    The diagnose-deployment skill triggers on read-sounding requests such as 'show upload logs' or 'why did my deploy fail' and states it never applies fixes without confirmation, but Phase 3 immediately runs pac pages upload-code-site against the active PAC CLI environment with no dry-run flag and no environment confirmation gate. If PAC CLI is pointed at staging or production, asking to diagnose errors overwrites the live site.

    Fix: Confirm the active PAC environment and get explicit user permission before running pac pages upload-code-site, or inspect existing logs and Dataverse asyncoperations records first.

  18. LowDouble-quoted echo of raw deployment error text risks shell command substitution

    plugins/power-pages/skills/diagnose-deployment/SKILL.md:85

    Phase 3 and Phase 4 of diagnose-deployment instruct the AI agent to interpolate captured PAC CLI output and Dataverse asyncoperations error messages into a double-quoted shell command (echo "{escaped-output}"). In bash, $(...) and backticks expand inside double quotes; if error text from a shared Dataverse environment contains shell command-substitution syntax that the agent fails to escape, arbitrary commands can run during error parsing.

    Fix: Pipe command output directly to parse-deployment-errors.js or pass error text via a single-quoted heredoc (<<'EOF') or a file written with the Write tool rather than double-quoted echo.

  19. LowCode-app scaffolding runs unpinned npx degit against a mutable GitHub branch

    plugins/code-apps/skills/create-code-app/SKILL.md:86

    The create-code-app skill scaffolds projects by invoking npx degit without version pinning to fetch a template from the mutable default branch of microsoft/PowerAppsCodeApps, followed immediately by npm install without --ignore-scripts. A compromise of the degit package or upstream branch would execute code during scaffolding, and --force can overwrite existing files in the target folder.

    Fix: Fetch templates from a pinned commit SHA or an integrity-verified npm tarball (matching the mobile-apps plugin's lifecycle helper) rather than unpinned npx degit.

  20. LowRecommended quick-install command pipes an unpinned script from main into Node

    README.md:55

    The quick-install instructions pipe scripts/install.js directly from the mutable main branch on raw.githubusercontent.com into node without pinning a release tag, commit SHA, or checksum verification, and automatically enable plugin auto-updates.

    Fix: Pin quick-install URLs to immutable release tags or commit hashes with published SHA-256 checksums, or recommend the built-in plugin marketplace command as the primary install method.

  21. LowUntrusted solution.xml version string interpolated into node -e command

    plugins/power-pages/skills/import-solution/SKILL.md:200

    During the pre-prompt version-skew check in Phase 3 Step 3.0, the skill instructs the agent to extract the <Version> value from solution.xml inside the input .zip archive and interpolate {ZIP_SOLUTION_VERSION} directly inside a double-quoted shell command and single-quoted JavaScript string in node -e. Importing an untrusted solution archive with shell metacharacters or quotes in <Version> (potentially paired with prompt injection text in solution.xml) can cause arbitrary command or JavaScript execution if the agent follows the template literally.

    Fix: Pass PLUGIN_ROOT, ZIP_SOLUTION_VERSION, and INSTALLED.version as positional arguments via process.argv rather than interpolating them into the JavaScript code string.

  22. Lowverify-dataverse-access.js prints live Azure bearer access tokens to stdout

    plugins/power-pages/scripts/verify-dataverse-access.js:51

    When verifying Dataverse connectivity, verify-dataverse-access.js includes the raw Azure CLI bearer token in its JSON stdout response. When invoked by an AI coding assistant, stdout is sent to the external AI model provider, stored in plaintext session transcripts on disk, and retained in the LLM context window where subsequent indirect prompt injection could read and exfiltrate the live credential.

    Fix: Remove the token field from the JSON printed to stdout so only non-secret identity metadata (userId, organizationId, tenantId) is returned to the agent, matching plugins/pcf/scripts/check-auth.js.

  23. LowPath traversal in table-permission and site-setting file writers

    plugins/power-pages/scripts/create-table-permission.js:266

    create-table-permission.js builds the output YAML filename from --permissionName by collapsing spaces and hyphens without rejecting path separators (/ or \) or '..' segments, and plugins/power-pages/scripts/create-site-setting.js replaces '/' with '-' while leaving '\' intact on Windows. Neither script checks that the resolved filePath remains inside the target metadata directory or refuses symlinks, allowing crafted names from prompt injection or untrusted metadata to write .tablepermission.yml or .sitesetting.yml files outside .powerpages-site/.

    Fix: Sanitize or reject both '/' and '\' as well as '..' segments in permissionName and settingName, verify path containment within the target metadata directory, and refuse symlink targets before writing.

  24. LowBidirectional readiness audit loads playwright module from the target project's node_modules

    plugins/power-pages/scripts/audit-rendered-bidirectional-readiness.js:109

    Because marketplace installs of the plugin do not bundle a local node_modules directory, loadPlaywright(projectRoot) falls back to require(path.join(projectRoot, 'node_modules', 'playwright')). Unlike axe-audit.js and capture-design-review.js, which load Playwright from the plugin's pinned @playwright/mcp cache so nothing is loaded from the project, running this audit against an untrusted projectRoot executes any JavaScript placed at <projectRoot>/node_modules/playwright.

    Fix: Load Playwright using ./lib/load-playwright.js rather than requiring modules from projectRoot/node_modules, matching axe-audit.js and capture-design-review.js.

  25. LowPath traversal and YAML injection via unvalidated --name in create-web-role.js

    plugins/power-pages/skills/create-webroles/scripts/create-web-role.js:179

    Unlike sibling metadata generators, create-web-role.js builds the output filename directly from --name without rejecting path separators or '..' and writes unquoted YAML fields without rejecting newlines. If prompt injection tricks the agent into passing a crafted role name, the script can write .webrole.yml files outside the roles folder or inject YAML fields such as anonymoususersrole: true to bypass the duplicate anonymous/authenticated role checks.

    Fix: Validate the derived slug against a strict alphanumeric-hyphen allowlist, verify the resolved path stays inside layout.roles.directory, reject newlines, quote YAML string scalars, and use flag 'wx'.

  26. LowScheduled workflow runs unpinned third-party action with repository contents:write token

    .github/workflows/github-repo-stats.yml:58

    While other GitHub Actions in the repository are pinned to full commit SHAs, github-repo-stats.yml checks out jgehrcke/github-repo-stats at the mutable RELEASE ref on a daily schedule and passes it a GitHub App token with contents:write permission on microsoft/power-platform-skills. Installed plugins do not run this workflow directly, but compromising that mutable ref could tamper with repository branches.

    Fix: Pin jgehrcke/github-repo-stats to an audited full commit SHA instead of the mutable RELEASE ref.

  27. LowCanvas Apps prompt hook resolves C# script from drive root when CLAUDE_PLUGIN_ROOT is unset

    plugins/canvas-apps/hooks/hooks.json:9

    On every UserPromptSubmit event, this hook runs dotnet run --file "${CLAUDE_PLUGIN_ROOT}/hooks/inject-sync-reminder.cs" without checking that CLAUDE_PLUGIN_ROOT is set or falling back to PLUGIN_ROOT. In hosts that do not set CLAUDE_PLUGIN_ROOT, the path expands to /hooks/inject-sync-reminder.cs (which resolves on Windows to <current-drive>:\hooks\inject-sync-reminder.cs). On multi-user Windows systems where standard users can create folders under C:\, or when working on a shared network drive, another user could place C# code at \hooks\inject-sync-reminder.cs that executes automatically whenever a prompt is submitted.

    Fix: Verify that PLUGIN_ROOT or CLAUDE_PLUGIN_ROOT is set to a valid directory before invoking dotnet run, exiting immediately if neither variable is present (matching the hook wrappers in mobile-apps, model-apps, and pcf).

  28. LowCode Apps architect instructions scaffold projects via unpinned npx degit and mutable branch HEAD

    plugins/code-apps/agents/code-app-architect.md:84

    When scaffolding a new Code App, the architect instructions tell the agent to run bare npx degit against the unpinned default branch of microsoft/PowerAppsCodeApps/templates/vite followed by npm install. If degit is not already installed locally, npx downloads and executes the latest unpinned third-party degit package from npm, and the fetched template is not verified against a pinned version or integrity hash.

    Fix: Acquire templates from a version-pinned package with lockfile or integrity verification (similar to mobile-apps), or pin both the tool version and template commit SHA.

  29. LowDesign-system skill reference executes untrusted Tailwind configs despite read-only policy

    plugins/mobile-apps/skills/design-system/references/code-app-extraction.md:55

    Although input-modes.md (§15.E) states that --from-code-app is strictly read-only static text parsing and must never run npx or execute dynamic Tailwind configs, code-app-extraction.md instructs the agent to run npx --no-install tailwindcss --print-config when tailwind.config.ts uses runtime functions. Following this step on a downloaded reference project executes both the target project's local tailwindcss binary and arbitrary code inside tailwind.config.ts.

    Fix: Remove the npx --no-install tailwindcss --print-config fallback from code-app-extraction.md so it matches input-modes.md §15.E and relies strictly on static text parsing.

  30. LowUnescaped label injection and missing CSP in create-site plan HTML template

    plugins/power-pages/skills/create-site/assets/create-site-plan.html:159

    In create-site-plan.html, localized field labels from PLAN_LABELS.design.direction are concatenated directly into innerHTML without esc(), and the page lacks a Content-Security-Policy header. If prompt-injected text from an inspected brand website influences PLAN_LABELS during /create-site plan generation, opening the local HTML plan in the user's browser can execute injected JavaScript.

    Fix: Wrap f.label in esc(f.label) and add a strict nonce-based Content-Security-Policy matching permissions-plan.html.

  31. LowData-model plan HTML loads unpinned Mermaid script from CDN without Subresource Integrity

    plugins/power-pages/agents/assets/data-model-plan.html:8

    The data-model plan HTML loads a floating major version (mermaid@11) from cdn.jsdelivr.net without an integrity hash and allowlists the entire https://cdn.jsdelivr.net origin in script-src, exposing local plan viewers to upstream CDN tampering and weakening the nonce CSP.

    Fix: Pin an exact Mermaid version with a sha384 Subresource Integrity attribute, or bundle Mermaid locally and remove https://cdn.jsdelivr.net from script-src.

  32. LowCode Apps architect scaffolds projects using unpinned npx degit and mutable GitHub branch

    plugins/code-apps/com.github.copilot/agents/code-app-architect.agent.md:84

    The Code App Architect agent instructs running npx degit without a version pin on the third-party degit npm package, cloning the mutable default branch of microsoft/PowerAppsCodeApps, and immediately running npm install with lifecycle scripts enabled.

    Fix: Pin an immutable template release or npm package with integrity verification and --ignore-scripts, matching the mobile-apps template lifecycle.

  33. LowPower Pages governance skill defaults to Microsoft pre-production endpoints instead of production

    plugins/power-pages/skills/manage-governance/scripts/app-settings.json:4

    The shipped app-settings.json sets activeRing to TIP (pre-production) rather than Prod. By default, governance commands connect to api.preprod.powerplatform.com and tip1.api.bap.microsoft.com and trigger an OAuth device-code login for a pre-production client app, bypassing the cloud-specific routing (including GCC, GCC High, DoD, and China boundaries) that only applies when activeRing is Prod.

    Fix: Set activeRing to Prod by default in app-settings.json and require an explicit developer override to target TIP pre-production endpoints.

  34. LowGovernance skill templates interpolate unescaped site and environment names into single-quoted shell echo commands

    plugins/power-pages/skills/manage-governance/references/apply.md:59

    Both apply.md and status.md instruct the agent to pipe JSON into Node helper scripts using single-quoted shell commands like echo '{ ... "name": "<name>" ... }' | node ..., and apply.md explicitly tells the agent not to pre-escape original names. In a shared tenant where a lower-privileged maker can name a Power Pages site with single quotes and shell substitutions, following this command template literally can break out of the single-quoted string and run unintended shell commands before the governance approval prompt.

    Fix: Use quoted heredocs (<<'JSON') or pass site inventory JSON directly between scripts without interpolating API-returned names into shell command strings.

  35. LowScaffolded acceptTerms auth helper redirects to an unvalidated ReturnUrl query parameter

    plugins/power-pages/skills/setup-auth/references/authentication-reference.md:2237

    In the reference authService.ts code used by /setup-auth to scaffold SPA authentication, acceptTerms() reads ReturnUrl from window.location.search when no explicit returnUrl argument is passed and assigns it directly to window.location.href. If a generated site calls acceptTerms() without an override, a crafted link with ReturnUrl set to an external URL or javascript: URI can cause an open redirect or script execution after the user accepts terms.

    Fix: Validate queryReturnUrl in the reference implementation so only single-slash relative paths (starting with '/' and not '//') are allowed, defaulting to '/'.

  36. LowHeaders reference describes wildcard CORS with credentials as working without warning of cross-origin data exposure

    plugins/power-pages/skills/manage-headers/references/headers-reference.md:111

    headers-reference.md notes that Power Pages specializes HTTP/Access-Control-Allow-Origin: * into the caller's Origin on every response so that * with credentials effectively works, but does not warn against using that combination. Because Power Pages applies CORS headers to all responses—including /_layout/tokenhtml anti-forgery tokens and /_api/ endpoints—guiding an agent that * works with credentials risks configuring authenticated cross-origin access for arbitrary websites.

    Fix: Add an explicit warning in headers-reference.md never to combine HTTP/Access-Control-Allow-Origin: * with HTTP/Access-Control-Allow-Credentials: true, and require specific trusted origins whenever credentials are enabled.

  37. InfoUsage telemetry is enabled by default with no first-run prompt and keeps local logs after opt-out

    README.md:393

    Six plugins (Power Pages, Model-driven apps, PCF, Mobile apps, Power Apps Mobile extensions, and Power Automate) send usage telemetry to Microsoft by default without a first-run prompt. When signed in, payloads can include Dataverse organization IDs, Entra tenant IDs, and (for Power Pages, Power Automate, and Mobile extensions) the user's Entra object ID; turning telemetry off stops network transmission but continues writing those fields to local session logs under ~/.power-platform-skills/telemetry/.

    Fix: Consider making telemetry opt-in or suppressing identifier collection and local mirror writes when the user opts out.

  38. InfoUsage telemetry is enabled by default and includes organization and tenant IDs

    plugins/model-apps/hooks/run-skill-pretool-telemetry.js:174

    Lifecycle hooks in model-apps and mobile-apps (as well as other plugins noted in README.md) send skill usage telemetry to Microsoft 1DS collectors by default without a first-run prompt. When the user is signed in to Power Platform, events include Dataverse organization and Entra tenant GUIDs (and Entra user object IDs in some plugins), and sanitized diagnostic logs are retained locally under ~/.power-platform-skills/telemetry/ even when network transmission is turned off.

    Fix: Users who do not want usage metadata transmitted can run each plugin's telemetry off command (for example /model-apps:telemetry off) or set the corresponding POWER_PLATFORM_SKILLS_TELEMETRY_*_OPTOUT=1 environment variable.

  39. InfoTelemetry is enabled by default without a first-run prompt and sends Entra and Dataverse IDs

    shared/telemetry/lib/emit-from-prompt.js:152

    Several plugins send usage telemetry to Microsoft by default without asking on first run. When PAC CLI is signed in, telemetry hooks run pac auth who and include the Dataverse organization ID, Entra tenant ID, and—for plugins using emit-from-prompt.js—the signed-in user's Entra object ID (aadObjectId); opting out stops network uploads while still writing local logs under ~/.power-platform-skills/telemetry/.

    Fix: Consider making telemetry opt-in or omitting user-level Entra object IDs by default, and allow opting out of local diagnostic log writes as well.

  40. InfoUsage telemetry with organization, tenant, and Entra user IDs is enabled by default

    plugins/power-pages/scripts/lib/telemetry/lib/emit-from-prompt.js:152

    Several plugins (Power Pages, Model-driven apps, PCF, Mobile apps, Power Apps Mobile extensions, and Power Automate) send usage telemetry to Microsoft by default without a first-run prompt, including Dataverse organization IDs, Entra tenant IDs, and (in plugins using the shared prompt emitter) the signed-in user's Entra object ID, while also keeping a local log when opted out.

    Fix: Users who do not want usage telemetry transmitted can run /<plugin>:telemetry off or set POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT=1 in their environment.

  41. InfoUsage telemetry hooks are enabled by default and include tenant, org, and user IDs when signed in

    plugins/model-apps/hooks/hooks.json:52

    Six plugins (model-apps, mobile-apps, pcf, power-pages, power-apps-mobile-extension, and power-automate) send usage telemetry to Microsoft by default with no first-run consent prompt, triggered automatically by UserPromptSubmit and PreToolUse hooks. When signed in to Power Platform, events can include organization and tenant GUIDs and, in some plugins, Microsoft Entra user object IDs; opting out stops network uploads but still writes local .jsonl logs in the user's home folder. Separately, code-apps skills check raw.githubusercontent.com once per day for plugin updates.

    Fix: Run each plugin's telemetry skill (for example /model-apps:telemetry off) or set the documented POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT=1 environment variables to disable network transmission.

  42. InfoSix plugins send usage and tenant/user identifier telemetry to Microsoft by default

    plugins/power-pages/scripts/lib/telemetry/ikey.json:3

    Power Pages, Model Apps, PCF, Mobile Apps, Power Apps Mobile Extension, and Power Automate enable telemetry transmission by default with no first-run prompt, sending skill names, runtime versions, and—when signed in—Dataverse organization IDs, Entra tenant IDs, and (in three plugins) Entra user object IDs to Microsoft OneCollector, while also writing local mirror logs even after opt-out.

    Fix: Users who do not want usage metadata transmitted can run /<plugin>:telemetry off or set POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT=1 in their environment before running skills.