CVE-2026-111987 Cross-site scripting in stable-diffusion-webui

Medium 5.3 Published Updated

Remote attackers can execute arbitrary scripts via malicious metadata in Stable Diffusion WebUI, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-111987?

CVE-2026-111987 is a medium-severity cross-site scripting vulnerability in AUTOMATIC1111 stable-diffusion-webui, published on 18 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-94, CWE-79

Which versions are affected by CVE-2026-111987?

How do I fix CVE-2026-111987?

No fix has been published for CVE-2026-111987 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-111987 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-111987 exists.

Sources

Also known as GHSA-j352-732r-4cwp.

Is CVE-2026-111987 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free