Dependency Confusion in Microsoft Power Apps
An unregistered NPM scope was referenced in a JavaScript file on a Microsoft domain, allowing an attacker to register the scope and publish a malicious package. The package was automatically pulled and executed by Microsoft's Power Apps infrastructure, enabling remote command execution as root.
How a Misconfigured Dependency Flow Led to Supply Chain Compromise (CVE-2026–32172)
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application referenced an internal NPM package scope that was not registered on the public npm registry, and the build system was configured to resolve packages from the public registry without verifying their origin.
Impact
An attacker could execute arbitrary commands as root within Microsoft's Power Apps infrastructure, potentially leading to further compromise.
What the attacker needed
Ability to register the unregistered NPM scope; target build system resolves packages from public npm
How it was found
- Proxy traffic from a Power Apps application and notice a reference to an unregistered NPM scope.
- Register the missing NPM organization on npmjs.com.
- Recreate the package structure with a malicious script that executes a command and exfiltrates output.
- Publish the package to npm.
- Monitor an OAST server for incoming connections from the target.
- Observe command execution as root on the target infrastructure.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When software is built, it often downloads other pieces of code (packages) from public repositories. If a company uses a private package name that isn't registered publicly, an attacker can register that name and upload malicious code. The build system then downloads the attacker's code instead of the intended private one, letting the attacker run commands on the company's servers.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.