Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111984 Overview
CVE-2026-111984 is a cross-site scripting (XSS) vulnerability in AUTOMATIC1111 stable-diffusion-webui versions up to 1.10.1. The flaw resides in the create_item_html function within modules/ui_extra_networks.py, part of the Card Builder component. An attacker can manipulate the filename argument to inject JavaScript that executes in the browser context of a user loading the extra networks UI. The vulnerability [CWE-79] is remotely triggerable but requires user interaction to activate the injected payload. A public proof-of-concept has been disclosed, and the maintainers were notified through an issue report but have not yet responded.
Critical Impact
Remote attackers can execute arbitrary JavaScript in the context of a victim's stable-diffusion-webui session, enabling session abuse, UI manipulation, or further client-side attacks against operators of the WebUI.
Affected Products
- AUTOMATIC1111 stable-diffusion-webui versions up to and including 1.10.1
- Component: Card Builder (modules/ui_extra_networks.py)
- Function: create_item_html
Discovery Timeline
- 2026-10-18 - CVE-2026-111984 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-111984
Vulnerability Analysis
The vulnerability is a reflected or stored cross-site scripting flaw in the extra networks UI of AUTOMATIC1111 stable-diffusion-webui. The create_item_html function in modules/ui_extra_networks.py builds HTML markup for model and asset cards displayed in the Card Builder interface. The function incorporates the filename attribute of an item into the generated HTML without adequate output encoding. When a crafted filename containing HTML or JavaScript is processed, the browser renders the payload as active script content instead of inert text.
Attackers can trigger the issue by placing a model, embedding, or asset file whose name contains an XSS payload into a directory the WebUI scans, or by inducing a user to load a malicious payload file. Because the WebUI is often exposed on localhost or accessible network interfaces, any client that loads the extra networks page becomes a target.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. The filename value is interpolated directly into HTML attributes or element bodies without HTML entity encoding or strict allowlisting of permitted characters.
Attack Vector
Exploitation is performed over the network and requires user interaction (passive user activity, consistent with the CVSS UI:P metric). An attacker supplies a filename containing a script payload, either by convincing the operator to download a model archive, by writing to a shared models directory, or by any other means that results in the malicious filename appearing in the Card Builder listing. When the user opens the extra networks tab, the browser parses and executes the injected code.
No verified exploitation code is published beyond the proof-of-concept archive attached to the upstream GitHub discussion. See the GitHub Issue Discussion #17497 and the GitHub PoC File Attachment for the maintainer-visible report.
Detection Methods for CVE-2026-111984
Indicators of Compromise
- Files in model, embedding, LoRA, or hypernetwork directories whose names contain HTML tags, angle brackets, or script fragments such as <script, onerror=, or javascript:.
- Browser console errors or Content Security Policy violations originating from the /extra-networks or Card Builder views of the WebUI.
- Unexpected outbound HTTP requests from the operator's browser to attacker-controlled hosts shortly after opening the extra networks tab.
Detection Strategies
- Scan model and asset directories for filenames that fail an allowlist of alphanumerics, dashes, underscores, dots, and spaces.
- Inspect HTTP responses from stable-diffusion-webui for rendered item cards containing unescaped < or > characters inside attribute values.
- Hunt in endpoint telemetry for the WebUI process spawning browsers that initiate connections to unfamiliar domains after user interaction with the UI.
Monitoring Recommendations
- Enable browser developer tools or a Content Security Policy report-only header while using the WebUI to surface script injection attempts.
- Log and alert on filesystem writes to WebUI model directories from untrusted processes or users.
- Review the VulDB CVE-2026-111984 entry and the referenced GitHub Issue Discussion #17497 for updated indicators as the project responds.
How to Mitigate CVE-2026-111984
Immediate Actions Required
- Restrict network exposure of stable-diffusion-webui to localhost or an authenticated reverse proxy. Do not expose the WebUI directly to the internet.
- Audit all model, LoRA, embedding, and hypernetwork directories and remove or rename any files whose names contain HTML, script, or URI-scheme fragments.
- Treat model archives from untrusted sources as hostile and inspect filenames before extracting them into WebUI content directories.
Patch Information
No official patch has been released. According to the public disclosure, the maintainers were notified through an upstream issue report but have not yet responded. Monitor the AUTOMATIC1111 stable-diffusion-webui repository and GitHub Issue Discussion #17497 for a fix.
Workarounds
- Run the WebUI behind an authenticating reverse proxy with a strict Content Security Policy that disallows inline scripts.
- Launch the WebUI with --listen disabled and bind only to 127.0.0.1, limiting access to the local operator.
- Enforce filename sanitization at ingestion by renaming downloaded models to a controlled scheme before placing them in scanned directories.
- Use a separate, non-privileged browser profile when interacting with the WebUI to limit the scope of any successful XSS payload.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

