Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain write access to agent-readable filesystem path
-
DeliveryPlant crafted SVG file with embedded script tags
-
ExploitCraft image_get URL referencing malicious SVG
-
InstallDeliver phishing link to authenticated Agent Zero user
-
C2Victim browser fetches endpoint and renders SVG without CSP
-
ExecuteEmbedded JavaScript executes in application origin
-
ImpactExfiltrate csrf_token cookie and replay authenticated API calls
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all three of the following conditions to be met simultaneously: (1) the attacker must have prior write access to at least one filesystem path readable by the agent-zero process (e.g., an upload directory, mounted volume, or path writable via a separate vulnerability) in order to plant the crafted SVG file; (2) an authenticated Agent Zero user must be induced via phishing or social engineering to access the image_get endpoint with a URL parameter pointing to the attacker's SVG - the CVSS UI:P (User Interaction: Passive) metric confirms this is a mandatory prerequisite, not an optional escalation path; and (3) the target instance must be running Agent Zero before version 1.15. The CVSS PR:N confirms the attacker requires no authentication themselves to craft the payload URL or plant the file through an external write vector. Exploitation is bounded by the non-default requirement for prior file-write access and the mandatory user-interaction step, which together explain the SSVC automatable=no classification and prevent mass automated targeting. |
| Impact | CVSS 4.0 scores this 5.3 (Medium). The vector AV:N/AC:L/AT:N/PR:N/UI:P reflects network-accessible, low-complexity exploitation requiring no attacker privileges but mandating passive user interaction, which is the primary risk-limiting factor. Impact metrics SC:L and SI:L confirm the effect is confined to the victim's browser session (subsequent system) rather than the server itself, consistent with session-hijacking XSS. SSVC reinforces this: exploitation status is none (no observed active exploitation), automatable is no (social engineering prerequisite prevents mass targeting), and technical impact is partial. No CISA KEV listing and no public exploit code identified at time of analysis, meaning this does not meet the threshold for emergency response. Despite the moderate CVSS score, the real-world risk in agentic AI deployments is non-trivial: csrf_token theft grants the ability to issue authenticated API calls against an AI agent framework, potentially triggering sensitive agent operations or data exfiltration. Organizations running Agent Zero in multi-user or internet-exposed configurations should treat this as a near-term patching priority rather than a routine maintenance item. EPSS score was not included in the source data; exploitation probability cannot be quantified beyond SSVC signals. |
| Exploit ScenarioDerived | An attacker with write access to a filesystem path readable by the agent-zero process - for example via a separate file-upload vulnerability or misconfigured shared storage - places a crafted SVG file embedding a script tag that POSTs document.cookie to an attacker-controlled server. The attacker crafts a URL to the image_get endpoint referencing the malicious SVG and delivers it to an authenticated Agent Zero user via phishing; the victim's browser fetches the endpoint, renders the SVG inline without script restrictions, and executes the payload, silently exfiltrating the csrf_token cookie and enabling the attacker to replay authenticated API calls. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Stored cross-site scripting in Agent Zero before version 1.15 enables arbitrary JavaScript execution in the application origin by exploiting the image_get API endpoint's failure to set Content-Security-Policy, X-Content-Type-Options, or Content-Disposition headers when serving SVG files. An unauthenticated attacker (CVSS PR:N) who can write a crafted SVG to any filesystem path readable by the agent-zero process can then socially engineer an authenticated user into visiting the endpoint, causing the browser to execute embedded scripts, exfiltrate the csrf_token cookie, and issue unauthorized API calls on the victim's behalf. No public exploit has been identified at time of analysis, and SSVC classifies exploitation as none with automatable set to no, reflecting the mandatory user-interaction prerequisite.
RemediationAI
Upgrade Agent Zero to version 1.15 or later, which is the vendor-released patch confirmed by EUVD-2026-32524 and implemented in commit 1f2d5122265282d6b98bc36ee8f9d0f8ab76db9e (https://github.com/3clyp50/agent-zero/commit/1f2d5122265282d6b98bc36ee8f9d0f8ab76db9e). The patch adds an SVG-specific Content-Security-Policy ('sandbox; default-src none; script-src none') and X-Content-Type-Options: nosniff to the image_get response, and restricts path resolution to the application base directory. If immediate upgrade is not feasible, block external access to the image_get endpoint at the reverse proxy or WAF layer by denying requests to the equivalent route - note this will break legitimate in-application image rendering. Additionally, audit and restrict write permissions on directories readable by the agent-zero process to prevent attackers from planting SVG payloads; this is a compensating control only and does not eliminate the header-injection root cause. The VulnCheck advisory at https://www.vulncheck.com/advisories/agent-zero-stored-xss-via-image-get-api-endpoint and GitHub issue https://github.com/agent0ai/agent-zero/issues/1609 provide additional vendor context.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in api/image_get.py within the Agent Zero AI agent framework (all versions before 1.15). Root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically the omission of security response headers when serving SVG and SVGZ files. SVG is an XML-based format that natively supports inline JavaScript via script tags; when a browser renders SVG served without a script-blocking Content-Security-Policy or X-Content-Type-Options: nosniff header, it executes embedded scripts in the serving origin's security context. The pre-patch code in image_get.py applied no SVG-specific header treatment, serving SVG content identically to inert raster formats. The fix in commit 1f2d5122265282d6b98bc36ee8f9d0f8ab76db9e introduces a hardened CSP string ('sandbox; default-src none; script-src none; img-src self data:; style-src unsafe-inline') applied exclusively to .svg and .svgz responses, adds X-Content-Type-Options: nosniff across all image types, and introduces a path traversal guard (_resolve_allowed_image_path) that constrains file resolution to the application's base directory. No CPE string was provided in the source data; affected product is identified via EUVD-2026-32524 as Agent-Zero versions 0 through less than 1.15.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Primary rating from Vendor (vulncheck) · only source for this CVE.
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.org
Agent Zero before version 1.15 contains a stored cross-site scripting vulnerability that allows attackers to execute arbitrary JavaScript in the application origin by serving SVG files through the image_get API endpoint without Content-Security-Policy, X-Content-Type-Options, or Content-Disposition headers. Attackers can place a crafted SVG file containing script tags in any path readable by the agent-zero process and lure an authenticated user to the image_get endpoint, causing the browser to execute the malicious script, steal the csrf_token cookie, and perform unauthorized API calls on behalf of the victim.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-32524
GHSA-9pw8-7895-6wxc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB