merajmehrabi/puppeteer-mcp-server
This MCP server provides browser automation capabilities through Puppeteer, allowing interaction with both new browser instances and existing Chrome windows.
41d656953cbapuppeteer-mcp-server0.7.2 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- CRITICAL10 production dependencies have known vulnerabilities (worst: critical).
- HIGHTools
puppeteer_connect_active_tab,puppeteer_navigate,puppeteer_screenshotrequest any address by design: an agent steered by prompt injection can use them that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Limit where it can connect
puppeteer_connect_active_tab,puppeteer_navigate,puppeteer_screenshotcan request any address. Block access to internal hosts and cloud metadata endpoints. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
puppeteer_connect_active_tab,puppeteer_navigate,puppeteer_screenshot, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
@modelcontextprotocol/sdk1.32.0 or later,basic-ftp6.2.4 or later,ip-address10.7.4 or later,js-yaml4.3.2 or later and 4 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 8 tools, 2 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
puppeteer_click, puppeteer_connect_active_tab, puppeteer_evaluate, puppeteer_fill, puppeteer_hover, puppeteer_navigate and 2 morepuppeteer_click, puppeteer_connect_active_tab, puppeteer_evaluate, puppeteer_fill, puppeteer_hover, puppeteer_navigate and 2 moreNo tool was seen to: start other programs on the machine; read or write files; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
8 request addresses could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- web or API responses8 tools · puppeteer_click, puppeteer_connect_active_tab, puppeteer_evaluate +5
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (10: 8 tools, 2 resources)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
puppeteer_connect_active_tabtool Connect to an existing Chrome instance with remote debugging enabledNetworkEnv varsoutside textRequests any address
Connect to an existing Chrome instance with remote debugging enabled
puppeteer_navigatetool Navigate to a URLNetworkEnv varsoutside textRequests any address
Navigate to a URL
puppeteer_screenshottool Take a screenshot of the current page or a specific elementNetworkEnv varsoutside textRequests any address
Take a screenshot of the current page or a specific element
(name computed at run time)resource
No description.
Browser console logsresource
No description.
puppeteer_clicktool Click an element on the pageNetworkEnv varsoutside text
Click an element on the page
puppeteer_evaluatetool Execute JavaScript in the browser consoleNetworkEnv varsoutside text
Execute JavaScript in the browser console
puppeteer_filltool Fill out an input fieldNetworkEnv varsoutside text
Fill out an input field
puppeteer_hovertool Hover an element on the pageNetworkEnv varsoutside text
Hover an element on the page
puppeteer_selecttool Select an element on the page with Select tagNetworkEnv varsoutside text
Select an element on the page with Select tag
Text the model reads (10)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
puppeteer_connect_active_tab tool
Connect to an existing Chrome instance with remote debugging enabled
puppeteer_navigate tool
Navigate to a URL
puppeteer_screenshot tool
Take a screenshot of the current page or a specific element
puppeteer_click tool
Click an element on the page
puppeteer_fill tool
Fill out an input field
puppeteer_select tool
Select an element on the page with Select tag
puppeteer_hover tool
Hover an element on the page
puppeteer_evaluate tool
Execute JavaScript in the browser console
Browser console logs resource
(name computed at run time) resource
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 10 tool handlers traced
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 10 tool handlers traced
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 10 tool handlers traced
- Requests any address HIGH1 finding in puppeteer_connect_active_tab
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 10 tool handlers traced
- Tools that start processesNot seen in the traced code of 10 capabilities; 10 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 10 capabilities; 10 more call code the scanner could not follow, where it may happen
- Tools that call the network8 of 10 capabilities call the network; 2 more call code the scanner could not follow, where it may happen
Where the code is: 10 handlers in 2 files at commit 41d656953cba
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies CRITICAL10 production packages with known advisories
- Known vulnerabilities in other dependencies2 packages with advisories used only for development, tests or examples; an install of the server leaves them out
- MCP SDK version@modelcontextprotocol/sdk 1.0.1
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 10 capabilities; 10 more call code the scanner could not follow, where it may happen
- Environment variables8 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (2 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (10 in production)
basic-ftpnpm 5.0.5 CRITICAL 7 advisories 5.2.05.2.25.3.0+4 more
- CRITICALGHSA-5rq4-664w-9x2c CVE-2026-27699Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
- HIGHGHSA-c475-qrg2-pj4r CVE-2026-102990basic-ftp: Quadratic-time CPU denial of service in Client.list() Unix directory-listing parser (RE_LINE backtracking)
- HIGHGHSA-6v7q-wjvx-w8wgbasic-ftp: Incomplete CRLF Injection Protection Allows Arbitrary FTP Command Execution via Credentials and MKD Commands
- HIGHGHSA-rpmf-866q-6p89 CVE-2026-44240basic-ftp allows a malicious FTP server to cause client-side denial of service via unbounded multiline control response buffering
- HIGHGHSA-rp42-5vxx-qpwr CVE-2026-41324basic-ftp vulnerable to denial of service via unbounded memory consumption in Client.list()
- MEDIUMGHSA-5pm8-86m8-9m6r CVE-2026-126345basic-ftp: Uncaught TypeError in MLSD directory-listing parser via __proto__ fact name causes DoS in Client.list()
- MEDIUMGHSA-r4jh-29pc-gfqr CVE-2026-126346basic-ftp: Uncaught exception crashes the Node.js process when a password (or resumed-download path) contains CR/LF
ip-addressnpm 9.0.5 HIGH 6 advisories 10.1.110.3.110.5.1+2 more
- HIGHGHSA-mwp4-54f8-5fhr CVE-2026-69192ip-address: Address4 decodes leading-zero octets as decimal while resolvers decode them as octal, allowing SSRF and trust-boundary bypass
- MEDIUMGHSA-rxp7-6hxx-x8q5 CVE-2026-111997ip-address: Address6 matches a zone identifier in quadratic time ahead of its length limit, allowing a single long string to stall the process
- MEDIUMGHSA-rpw4-54j3-4h4q CVE-2026-101913ip-address: Address6.isLinkLocal() recognizes fe80::/64 rather than fe80::/10, allowing SSRF and trust-boundary bypass to on-link hosts
- MEDIUMGHSA-h3mg-xc3c-68pw CVE-2026-101911ip-address: Address6 builds a parse diagnostic proportional to the input with no length bound, allowing a single long string to stall or crash the process
- MEDIUMGHSA-j6r3-76f7-8jcv CVE-2026-101912ip-address: isInSubnet() and isHostInSubnet() compare addresses of different families as if they shared an address space, allowing an allowlist check to admit an address outside its range
- MEDIUMGHSA-v2v4-37r5-5v8g CVE-2026-42338ip-address has XSS in Address6 HTML-emitting methods
js-yamlnpm 4.1.0 HIGH 5 advisories 3.14.23.15.03.15.1+6 more
- HIGHGHSA-2883-xcg3-v3hh CVE-2026-84375js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources
- HIGHGHSA-5p4m-2wfm-xmqjJS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported
- HIGHGHSA-52cp-r559-cp3m CVE-2026-59869js-yaml: YAML merge-key chains can force quadratic CPU consumption
- MEDIUMGHSA-h67p-54hq-rp68 CVE-2026-53550JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases
- MEDIUMGHSA-mh29-5h37-fv8m CVE-2025-64718js-yaml has prototype pollution in merge (<<)
@modelcontextprotocol/sdknpm 1.0.1 HIGH 2 advisories 1.24.01.32.0
- HIGHGHSA-w48q-cv73-mx4w CVE-2025-66414Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
- MEDIUMGHSA-6prh-2h8m-c8cw CVE-2026-111769MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
extract-zipnpm 2.0.1 HIGH 2 advisories no fix yet
- HIGHGHSA-jmr9-qjv8-65gv CVE-2026-56876extract-zip unvalidated symlink path traversal
- HIGHGHSA-7pqw-9j4j-h8q3 CVE-2026-19693extract-zip allows arbitrary file writes through symlink archive entries
tar-fsnpm 3.0.8 HIGH 2 advisories 1.16.51.16.62.1.3+3 more
- HIGHGHSA-vj76-c3g6-qr5v CVE-2025-59343tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball
- HIGHGHSA-8cj5-5rvv-wf4v CVE-2025-48387tar-fs can extract outside the specified dir with a specific tarball
wsnpm 8.18.1 HIGH 2 advisories 5.2.56.2.47.5.11+2 more
- HIGHGHSA-96hv-2xvq-fx4p CVE-2026-48779ws: Memory exhaustion DoS from tiny fragments and data chunks
- MEDIUMGHSA-58qx-3vcg-4xpx CVE-2026-45736ws: Uninitialized memory disclosure
zodnpm 3.23.8 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
zodnpm 3.24.2 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
momentnpm 2.30.1 MEDIUM 1 advisory 2.31.0
- MEDIUMGHSA-4p3w-j4w9-5jqw CVE-2026-17495moment vulnerable to Path Traversal via crafted non-string locale name
2 vulnerable packages outside the server itself (used only for development, tests or examples, not shipped)
brace-expansionnpm 1.1.11 HIGH 8 advisories 1.1.121.1.131.1.16+28 more
- HIGHGHSA-6j4f-fj2g-mc7p CVE-2026-102276brace-expansion: DoS via uncontrolled recursion in parseCommaParts causing stack exhaustion
- HIGHGHSA-qhr7-859c-m2p7 CVE-2026-102278brace-expansion: DoS via uncontrolled recursion on nested brace groups causing stack exhaustion
- HIGHGHSA-3jxr-9vmj-r5cp CVE-2026-13149brace-expansion: DoS via exponential-time expansion of consecutive non-expanding {} groups
- HIGHGHSA-mh99-v99m-4gvg CVE-2026-14257brace-expansion: DoS via unbounded expansion length causing an out-of-memory process crash
- HIGHGHSA-rgw5-rvv9-x895 CVE-2026-69152brace-expansion: DoS via unbounded intermediate arrays, bypassing the CVE-2026-14257 mitigation
- MEDIUMGHSA-f886-m6hf-6m8v CVE-2026-33750brace-expansion: Zero-step sequence causes process hang and memory exhaustion
- MEDIUMGHSA-q2hr-2g5m-vwhr CVE-2026-102277brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite causes CPU denial of service
- LOWGHSA-v6h2-p8h4-qcjw CVE-2025-5889brace-expansion Regular Expression Denial of Service vulnerability
minimatchnpm 3.1.2 HIGH 3 advisories 3.1.33.1.44.2.4+13 more
- HIGHGHSA-7r86-cg39-jmmj CVE-2026-27903minimatch has ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments
- HIGHGHSA-23c5-xmqv-rm74 CVE-2026-27904minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions
- HIGHGHSA-3ppc-4f35-3m26 CVE-2026-26996minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk 1.0.1 |
| Servers in the code | 1 (example-servers/puppeteer) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2025-03-14 |
| Signed releases | not checked yet |
Install it
For the server's own npm package puppeteer-mcp-server. Pin a version ([email protected]) so an update cannot change the tools without you noticing.
Claude Desktop claude_desktop_config.json
{
"mcpServers": {
"puppeteer-mcp-server": {
"command": "npx",
"args": [
"-y",
"puppeteer-mcp-server"
]
}
}
}Cursor ~/.cursor/mcp.json
{
"mcpServers": {
"puppeteer-mcp-server": {
"command": "npx",
"args": [
"-y",
"puppeteer-mcp-server"
]
}
}
}VS Code .vscode/mcp.json
{
"servers": {
"puppeteer-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"puppeteer-mcp-server"
]
}
}
}Claude Code terminal
claude mcp add puppeteer-mcp-server -- npx -y puppeteer-mcp-serverWhere it is published
| npm package | puppeteer-mcp-server |
|---|---|
| Other npm packages | 3 packages by other publishers point to this repositoryNot published by the repository's owner; check who publishes a package before you install it. |
| Downloads | 11 503 a month on npm (including the other packages) |
| Listed in | 6 catalogs (awesome_tensorblock, github_search, glama, mcp_toplist, mcpservers_org, npm) |
| License | MIT |
| Created | 2025-02-10 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.