Documented Incident · INC-2024-47872 · Elevated severity
Gradio Uploaded File Stored Cross-Site Scripting via Disguised HTML/SVG Assets
CVE-2024-47872 (published October 10, 2024) exposed a stored cross-site scripting (XSS) vulnerability in Gradio (`< 5.0`) deployments supporting user file uploads. Attackers could upload active HTML, JavaScript, or SVG documents disguised as benign data files, which Gradio subsequently served inline with executable MIME types in the application's origin. When reviewers or admins opened uploaded evaluation samples, embedded scripts executed in their browser session and stole cookies or invoked authenticated ML APIs. Gradio 5.0 remediated file-serving headers and enforced safer content-disposition policies.
Incident dossier metadata
- Case ID
INC-2024-47872- Classification
- Incident
- Date
- Severity
- Elevated
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Data Exfiltration
- System type
- Multi-User ML Demo & Evaluation Web Apps
- CVE / reference
CVE-2024-47872- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-47872
Defensive takeaway
Serve user-uploaded ML artifacts with Content-Disposition: attachment, strict Content-Security-Policy headers, and isolated sandbox domains.
Mapped AI security techniques
- LLM Response Rendering AML.T0077
- Use Alternate Authentication Material: Web Session Cookie AML.T0091.001
- Steal Web Session Cookie AML.T0113
- AI Service Web Interface AML.T0114
Mapped defensive controls
- Vulnerability Scanning AML.M0016
- Segmentation of AI Agent Components AML.M0032
- Input and Output Validation for AI Agent Components AML.M0033
Source citation records
- NVD Record CVE-2024-47872: Gradio File Upload Stored XSS · NIST National Vulnerability Database (NVD) ·