Back to skill

Security audit

Playwright Skill

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because its Docker example may expose browser control without a documented access boundary, and several expected-purpose checks raised concerns; analysis was partial, so the evidence is incomplete.

Consider avoiding installation until the browser-control endpoint is restricted to trusted access and the dependency versions are reviewed and pinned. The scan was partial: only 12 of 23 components were fully inspected, and multiple scripts and package files could not be fully interpreted.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (21)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied script's primary function is skill distribution tooling, not an implementation step of remote browser automation. It contains no Playwright interaction, WebSocket connection, screenshot capture, PDF generation, or browser testing. Its filesystem operations and zip subprocess support an undeclared packaging purpose. No exfiltration or malicious behavior is evident.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 17)May include surrounding context.

md
| Screenshot | `scripts/screenshot.js` | Capture screenshots of web pages |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 33)May include surrounding context.

md
node scripts/screenshot.js https://example.com screenshot.png --full-page

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 49)May include surrounding context.

md
- `screenshot.js` - Take screenshots with options

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 18)May include surrounding context.

md
| PDF | `scripts/pdf-export.js` | Generate PDFs from URLs |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 36)May include surrounding context.

md
node scripts/pdf-export.js https://example.com page.pdf

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 50)May include surrounding context.

md
- `pdf-export.js` - Generate PDFs

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 19)May include surrounding context.

md
| Test | `scripts/test-runner.js` | Run Playwright tests remotely |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 51)May include surrounding context.

md
- `test-runner.js` - Run remote tests

The Docker setup publishes the browser-control port without warning about external access.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The example publishes port 3000 on all host interfaces without documenting authentication, network restrictions, or a trusted-access boundary. If the browser server listens on the published container interface and is reachable, an unauthorized client with its endpoint could control the browser and access resources reachable from the container. Remote browser control makes this substantially more sensitive than an ordinary development port.

Content

No source excerpt is available for this finding.

Docker image referenced without tag or digest: 'docker run -p'.

Medium
Category
MCP Rug Pull
Confidence
75% confidence
Finding

Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx playwright'.

Medium
Category
MCP Rug Pull
Confidence
78% confidence
Finding

The Docker command invokes an unversioned Playwright package through npx without establishing a locally installed CLI. The versioned container image does not itself guarantee which npm package npx resolves; if absent locally, npx can fetch a changing release and execute it inside the container. This is a conditional dependency-reproducibility and supply-chain weakness, not an MCP-server issue.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Known Vulnerable Dependency: glob==13.0.7 — 1 advisory(ies): CVE-2026-118773 (Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal)

Medium
Category
Supply Chain
Confidence
70% confidence
Finding

The lockfile includes glob 13.0.7 in the development dependency tree; accepting the supplied advisory, traversal could continue after AbortSignal cancellation, consuming filesystem and processing resources beyond an intended timeout. Exploitation would require a relevant traversal path and attacker influence over its workload, neither of which is established here, and this does not by itself demonstrate unauthorized file access or exposure through the remote browser interface.

Content

No source excerpt is available for this finding.

Known Vulnerable Dependency: minimatch==10.2.6 — 1 advisory(ies): CVE-2026-118764 (minimatch has potential denial of service via globparts amplification)

Medium
Category
Supply Chain
Confidence
70% confidence
Finding

The lockfile includes minimatch 10.2.6 as a development dependency; accepting the supplied advisory, specially crafted glob patterns could amplify processing or allocation and cause denial of service. The main plausible exposure is development or CI tooling that processes attacker-controlled patterns, not the skill's browser automation runtime, and no such input path is demonstrated in this file.

Content

No source excerpt is available for this finding.

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · references/api-reference.md (reported line 35)May include surrounding context.

md
await page.click('button', { clickCount: 2 });  // Double click
await page.dblclick('button');

// Fill inputs
await page.fill('#email', 'user@example.com');
await page.fill('#email', '');  // Clear

Session Persistence

Medium
Category
Rogue Agent
Confidence
55% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · references/api-reference.md (reported line 167)May include surrounding context.

md
timezoneId: 'Europe/Berlin',
  geolocation: { latitude: 52.52, longitude: 13.405 },
  permissions: ['geolocation'],
  storageState: 'auth.json'  // Load saved state
});

// Save storage state

MCP server referenced without pinned version: 'npx playwright'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Known Vulnerable Dependency: deepmerge==4.3.1 — 1 advisory(ies): CVE-2026-93753 (deepmerge mergeObject() allows prototype poisoning of returned objects)

Low
Category
Supply Chain
Confidence
65% confidence
Finding

The lockfile includes deepmerge 4.3.1 as a development dependency; accepting the supplied advisory, merging attacker-controlled objects could poison the prototype of returned objects and affect subsequent property lookups. This is a dependency-level finding, not demonstrated exploitation: no unsafe merge call is shown, and the development-only scope reduces exposure in the browser automation runtime.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
77% confidence
Finding

The caret range permits later Playwright releases to be selected during dependency resolution. Without an enforced lockfile, a fresh installation can introduce unreviewed or compromised dependency code into the agent's execution environment. This is a conditional supply-chain weakness, not evidence that the declared package is malicious.

Content

Scanner excerpt · package.json (reported line 26)May include surrounding context.

json
"url": "https://github.com/first-it-consulting/playwright-skill.git"
  },
  "dependencies": {
    "playwright": "^1.65.0"
  },
  "devDependencies": {
    "jest": "^30.5.2"

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
77% confidence
Finding

The Jest caret range allows changing versions when dependencies are resolved without an enforced lockfile. Development dependencies can execute code during installation and testing, so compromised updates could affect developer or CI environments even though Jest is not required for production browser automation.

Content

Scanner excerpt · package.json (reported line 29)May include surrounding context.

json
"playwright": "^1.65.0"
  },
  "devDependencies": {
    "jest": "^30.5.2"
  }
}