Cross-Site Script Inclusion (XSSI) — stealing sensitive data from endpoints that return JavaScript or JSON-as-script by including them cross-origin via a script tag, including dynamic JS variable theft, JSONP leakage, and non-standard JSON prefixes bypass. Tier 1. Use for endpoints returning JS/JSONP or JSON without anti-XSSI protections.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Xssi?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-xssi)
---
name: xssi
description: Cross-Site Script Inclusion (XSSI) — stealing sensitive data from endpoints that return JavaScript or JSON-as-script by including them cross-origin via a script tag, including dynamic JS variable theft, JSONP leakage, and non-standard JSON prefixes bypass. Tier 1. Use for endpoints returning JS/JSONP or JSON without anti-XSSI protections.
---
# Cross-Site Script Inclusion (XSSI)
If a sensitive endpoint returns executable JS (or JSON loadable as script), an attacker page can `<script src>` it and read the data cross-origin.
## Trigger phrases
`xssi, cross site script inclusion, jsonp leak, javascript data theft, json hijacking`
## Method
1. Find endpoints returning `application/javascript` or JSON that executes as script (dynamic JS with global vars, JSONP callbacks, arrays/old-browser JSON).
2. **Dynamic-JS XSSI:** include the endpoint via `<script>`; read the global variables/functions it defines (containing user data).
3. **JSONP leakage:** supply your own `callback` to capture the data.
4. **Prefix checks:** confirm whether anti-XSSI prefixes (`)]}'`, `while(1);`, `for(;;);`) are present; absence → leakable.
5. Confirm cross-origin read on an attacker page with a victim session.
## Escalation
Theft of authenticated data (PII, tokens, config) cross-origin without CORS.
## Backend & tooling
Preferred Kali path or headless browser for client-side execution/evidence; if a Burp MCP is present, proxy traffic for visibility and send PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Reproduce in a real browser / second context and confirm impact before marking CONFIRMED; use OAST for blind cases. Report true positives only.
## Evidence
The leakable endpoint, the attacker-page PoC, and the data read cross-origin.