Lit Template Binding Audit

Finds the lit-html binding positions auto-escaping does not cover, before the component ships
Install
npx @readystack/lit-binding-xss-audit file
Node 18+. The same 15 rules as the VS Code extension, from a terminal or CI.
Free
- Audit the Lit component file you have open and get every unsafe binding with its line number and the safe form to write instead.
--rules lists every rule
With a licence ($29 once)
- Scans every component in the workspace and exports one dated evidence report: each unsafe binding with its file, line and safe form.
@readystack/lit-binding-xss-audit --dir ./templates --report html --out report.html
An application-security contractor reviewing component code bills roughly 150 to 250 an hour; this audit runs on the file you have open.
Use from an AI agent (MCP)
Claude Code · Cursor · Windsurf · any MCP client - add to your MCP config:
{ "mcpServers": { "lit-binding-xss-audit": { "command": "npx", "args": ["-y", "@readystack/lit-binding-xss-audit", "--mcp"] } } }
Tools: check_text and check_file (free) · check_dir (licence). The agent gets every finding with the line number.
Use in CI
- name: Lit Template Binding Audit
run: npx -y @readystack/lit-binding-xss-audit --dir . --ci
(container: docker run --rm -v "$PWD:/work" getreadystack/lit-binding-xss-audit --dir /work --ci)
The folder sweep, reports and CI mode need one licence — one payment, no subscription. Set READYSTACK_LICENSE=<key> or run --license <key> once.
Get a licence