Back to skill

Security audit

playwright-ws

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious with medium confidence, citing a mismatch between its stated browser-automation purpose and a packaging utility, privacy and dependency concerns, and incomplete analysis of some files.

Consider avoiding installation until the partially inspected files have been reviewed and the purpose mismatch clarified. If you use the skill, use only a remote browser endpoint you trust and avoid sending it sensitive pages or credentials; also check how dependency versions are pinned and whether the reported advisories apply.

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 chunk implements a standalone packaging utility, not browser automation or a supporting step within a demonstrated browser workflow. It contains no Playwright usage, WebSocket connection, screenshot capture, PDF generation, or browser testing. It could be ancillary project tooling, but its actual purpose is not represented by the supplied description. No network transmission 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 remote-browser workflow lacks a warning about exposing sensitive URLs and page content to the configured server.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

This README directs users to configure remote browser infrastructure without explaining that its operator can observe requested URLs, rendered content, and browser interactions. This is a documentation-level trust-boundary omission: users following this source alone could inadvertently expose sensitive material to an untrusted server.

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
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.

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 locked glob 13.0.7 version matches the supplied cancellation-bypass advisory, under which filesystem traversal could continue after an AbortSignal timeout and consume resources beyond the intended limit. Its use is development-only through Jest, so the primary potential exposure is test or CI resource exhaustion rather than the skill's remote Playwright connection; exploitation would require relevant traversal and cancellation behavior that this lockfile does not demonstrate. The advisory and affected-version range have not been independently verified.

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
72% confidence
Finding

The lockfile contains minimatch 10.2.6, matching the supplied advisory about denial of service through globparts amplification; malicious patterns could impose excessive matching work if they reach an affected API. This dependency is development-only within the Jest/coverage tooling, reducing runtime exposure, and no attacker-controlled pattern flow is shown in the supplied file. The advisory and affected-version range have not been independently verified.

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
72% confidence
Finding

The lockfile includes deepmerge 4.3.1, matching the supplied advisory about prototype poisoning of returned objects; attacker-controlled merge input could therefore influence inherited properties of a resulting object. This is a development-only dependency used by jest-config, which reduces exposure in normal browser-automation operation, and the supplied file does not establish that untrusted input reaches the affected function. The advisory and affected-version range have not been independently verified.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
78% confidence
Finding

The caret range permits later compatible Playwright releases rather than selecting one reviewed version. Without an enforced lockfile, fresh installations can receive changed or compromised dependency code; this is a conditional supply-chain hardening weakness, not evidence that the specified 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
78% confidence
Finding

The Jest caret range allows dependency resolution to change across installations unless a lockfile is enforced. Exposure is primarily in development and CI because this is a development dependency, but compromised resolved code could still affect those environments.

Content

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

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