XSS sinks
`dangerouslySetInnerHTML`, `v-html`, `[innerHTML]`, `innerHTML`/`document.write`, unsanitised Markdown.

the frontend dog. XSS sinks, CSP, postMessage, token storage and third-party scripts.
ExploitA comment with a script steals every viewer's session
FixSmallest change suggested
$ /watchdog-go-frontendThe frontend dog. Points at browser-side risk in React, Vue, Angular and plain JS: XSS sinks, CSP, postMessage and token storage.
The always-on lens watches React, Vue, Angular, Svelte, Next.js, HTML templates, browser JavaScript.
`dangerouslySetInnerHTML`, `v-html`, `[innerHTML]`, `innerHTML`/`document.write`, unsanitised Markdown.
`javascript:` links from data, open redirects, `window.location` from query params.
listeners without origin checks, `*` targetOrigin with sensitive data.
auth tokens in localStorage, secrets or private API keys in the bundle or env-exposed vars.
no CSP, `unsafe-inline`/`unsafe-eval`, missing frame-ancestors (clickjacking).
unpinned CDN scripts without SRI, tag managers with broad access.
server data serialised into HTML without escaping.
Runs these scanners when installed, then reads the code they can't understand:
XSS sinks, CSP, postMessage, token storage, third-party scripts
Also runs in these bundles.
Its test target holds a Vite + React app with a CSP meta tag: 18 planted issues, 3 decoys and an answer key.
Static review only. Never change live systems or send traffic to targets outside the user's written scope.
Never print a secret's value — not keys, tokens or passwords, even weak defaults. Give file:line and the secret type only.
End each review with: what you did not check, and the top risk the user must act on.
Pointer is Watchdog's frontend dog for Claude Code. It looks for XSS sinks, URL handling, postMessage, Token storage, CSP and headers, Third-party scripts and SSR/hydration. Each finding comes with the exact file and line, how it could be abused, and the smallest fix.
Install Watchdog with /plugin marketplace add watchdoglab/watchdog and /plugin install watchdog@watchdog, then run /watchdog-go-frontend. Its lens also stays on while you code and flags risky lines as they're written.
When they're installed, Pointer runs semgrep and eslint-plugin-security, then reads the code those scanners can't understand. Anything it couldn't check is listed under Not checked in the report.
Yes. Its first rule: Static review only. Never change live systems or send traffic to targets outside the user's written scope. Secrets it finds are reported by location and type only, never printed. Watchdog is free and open source (MIT).