CVE-2026-111987: A1111 WebUI: stored XSS via safetensors metadata hash
MEDIUMCISA: TRACK*AUTOMATIC1111 stable-diffusion-webui up to 1.10.1 has a cross-site scripting flaw in how the Extra-Networks card builder handles the `ss_sshs_model_hash` metadata field of a .safetensors file. An attacker who gets a crafted model or LoRA file loaded into the UI can run JavaScript in the browser of whoever views the card. Exploitation needs user interaction and has only low integrity impact (CVSS 4.3), and EPSS is low at 0.46% (62nd percentile). It is not in CISA KEV. The references include a proof-of-concept archive (a1111-sshs-hash-poc.zip), so treat exploit code as public even though our feed does not flag it. The maintainers have not responded to the issue report, so no patched version exists. Do not expose A1111 instances to untrusted networks or users, and only load models from sources you trust. Inspect the `__metadata__` fields of any third-party model files before loading them.
What is the risk?
Overall risk is LOW to MEDIUM. The CVSS 4.3 vector is network-reachable, low complexity, no privileges, user interaction required, with only low integrity impact. EPSS is low, there is no KEV listing and no Nuclei template. A PoC archive is linked in the references, which lowers the barrier for opportunistic attackers, and the project has not responded to the issue, so no vendor fix is expected soon. Exposure is highest for shared or internet-facing A1111 instances, where a browser session in the UI may carry access to generation settings, local file paths, or the WebUI API. A single-user instance bound to localhost that loads only self-vetted models is at minimal risk.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| stable-diffusion-webui | — | — | No patch |
Do you use stable-diffusion-webui? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step1) No patched version is listed for the affected product, so track the upstream issue (AUTOMATIC1111/stable-diffusion-webui#17500) and apply any fix or community patch once it exists. 2) Until then, sanitize or escape the
ss_sshs_model_hashvalue inread_metadata_from_safetensorsin modules/sd_models.py (HTML-encode output when building cards), or strip non-hex characters from the field. 3) Load only models and LoRAs from trusted publishers and verify hashes. Inspect the__metadata__JSON header of untrusted .safetensors files before use. 4) Do not expose the WebUI to the internet or to untrusted users. Put it behind authentication (--gradio-auth) or a VPN or reverse proxy, and avoid --listen on shared networks. 5) Add a restrictive Content-Security-Policy at the reverse proxy to limit inline script execution. 6) Detection: scan the model library for metadata fields containing<script,onerror=,javascript:or other HTML in hash fields, and monitor reverse-proxy logs for unexpected API calls from WebUI sessions.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-111987?
AUTOMATIC1111 stable-diffusion-webui up to 1.10.1 has a cross-site scripting flaw in how the Extra-Networks card builder handles the `ss_sshs_model_hash` metadata field of a .safetensors file. An attacker who gets a crafted model or LoRA file loaded into the UI can run JavaScript in the browser of whoever views the card. Exploitation needs user interaction and has only low integrity impact (CVSS 4.3), and EPSS is low at 0.46% (62nd percentile). It is not in CISA KEV. The references include a proof-of-concept archive (a1111-sshs-hash-poc.zip), so treat exploit code as public even though our feed does not flag it. The maintainers have not responded to the issue report, so no patched version exists. Do not expose A1111 instances to untrusted networks or users, and only load models from sources you trust. Inspect the `__metadata__` fields of any third-party model files before loading them.
Is CVE-2026-111987 actively exploited?
No confirmed active exploitation of CVE-2026-111987 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-111987?
1) No patched version is listed for the affected product, so track the upstream issue (AUTOMATIC1111/stable-diffusion-webui#17500) and apply any fix or community patch once it exists. 2) Until then, sanitize or escape the `ss_sshs_model_hash` value in `read_metadata_from_safetensors` in modules/sd_models.py (HTML-encode output when building cards), or strip non-hex characters from the field. 3) Load only models and LoRAs from trusted publishers and verify hashes. Inspect the `__metadata__` JSON header of untrusted .safetensors files before use. 4) Do not expose the WebUI to the internet or to untrusted users. Put it behind authentication (--gradio-auth) or a VPN or reverse proxy, and avoid --listen on shared networks. 5) Add a restrictive Content-Security-Policy at the reverse proxy to limit inline script execution. 6) Detection: scan the model library for metadata fields containing `<script`, `onerror=`, `javascript:` or other HTML in hash fields, and monitor reverse-proxy logs for unexpected API calls from WebUI sessions.
What systems are affected by CVE-2026-111987?
This vulnerability affects the following AI/ML architecture patterns: Generative image model serving (Stable Diffusion WebUI), Model artifact libraries and LoRA management, Shared or multi-user AI workstation environments, Model supply chain via public model hubs.
What is the CVSS score for CVE-2026-111987?
CVE-2026-111987 has a CVSS v3.1 base score of 4.3 (MEDIUM). The EPSS exploitation probability is 0.35%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0011.000Unsafe AI ArtifactsAML.T0049Exploit Public-Facing ApplicationAML.T0058Publish Poisoned ModelsCompliance Controls Affected
What are the technical details?
Original Advisory
A vulnerability was identified in AUTOMATIC1111 stable-diffusion-webui up to 1.10.1. Affected by this vulnerability is the function read_metadata_from_safetensors of the file modules/sd_models.py of the component Extra-Networks Card Builder. Such manipulation of the argument __metadata__.sshs_model_hash leads to cross site scripting. The attack can be launched remotely. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded yet.
Exploitation Scenario
An attacker publishes a popular-looking LoRA or checkpoint on a community model hub, with the safetensors `__metadata__.ss_sshs_model_hash` field set to an HTML/JavaScript payload. A designer on a shared A1111 server downloads the file into the models directory, and later opens the Extra Networks tab. The card builder renders the unsanitized hash value, so the script runs in the victim's browser. It uses the victim's session to call WebUI API endpoints, alter settings, read generation history, or redirect the user to a phishing page. The attacker needs no credentials on the server and only relies on the user loading the model.
Weaknesses (CWE)
CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CWE-94Improper Control of Generation of Code ('Code Injection')CWE-79 — Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'): The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- [Architecture and Design] Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482]. Examples of libraries and frameworks that make it easier to generate properly encoded output include Microsoft's Anti-XSS library, the OWASP ESAPI Encoding module, and Apache Wicket.
- [Implementation, Architecture and Design] Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required encoding strategies. For any data that will be output to another web page, especially any data that was received from external inputs, use the appropriate encoding on all non-alphanumeric characters. Parts of the same output document may require different encodings, which will vary depending on whether the output is in the: etc. Note that HTML Entity Encoding is only appropriate for the HTML body. Consult the XSS Prevention Cheat Sheet [REF-724] for more details on the types of encoding and escaping that are needed. HTML body Element attributes (such as src="XYZ") URIs JavaScript sections Casca
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:CReferences
- github.com/AUTOMATIC1111/stable-diffusion-webui/product
- github.com/AUTOMATIC1111/stable-diffusion-webui/issues/17500issue-tracking
- github.com/user-attachments/files/32834382/a1111-sshs-hash-poc.zipexploit
- vuldb.com/cve/CVE-2026-111987third-party-advisory
- vuldb.com/submit/1006710third-party-advisory
- vuldb.com/vuln/421653vdb-entrytechnical-description
- vuldb.com/vuln/421653/ctisignaturepermissions-required
Timeline
Related Vulnerabilities
CVE-2025-5952810.0Flowise: Unauthenticated RCE via MCP config injection
Same attack type: Supply ChainCVE-2024-291210.0BentoML: RCE via insecure deserialization (CVSS 10)
Same attack type: Supply ChainCVE-2023-376510.0MLflow: path traversal allows arbitrary file read
Same attack type: Supply ChainCVE-2025-512010.0smolagents: sandbox escape enables unauthenticated RCE
Same attack type: Supply ChainCVE-2026-2185810.0n8n: Input Validation flaw enables exploitation
Same attack type: Code Execution