Description
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.
Published: 2026-05-27
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Agent Zero version 1.14 and earlier contains a stored cross‑site scripting flaw in the image_get API endpoint. Attackers can upload a crafted SVG file containing script tags to a directory readable by the agent‑zero process. When an authenticated user visits the image_get URL, the browser executes the malicious JavaScript in the context of the application origin, allowing the attacker to steal the csrf_token cookie and perform unauthorized API requests on the victim’s behalf.

Affected Systems

Vendors: 3clyp50, Product: agent-zero, Versions: all releases prior to 1.15. Any installation that stores files in paths readable by the agent‑zero process and exposes the image_get endpoint is affected.

Risk and Exploitability

This vulnerability has a CVSS score of 5.3, indicating moderate overall risk. EPSS is not available and the issue is not listed in CISA KEV. An attacker must first upload a malicious SVG to a server location accessible to agent‑zero and then convince an authenticated user to access the image_get URL. The attack is confined to the victim’s browser session and requires the user to be actively redirected or lured to the crafted URL. Because it relies on user interaction and file placement, exploitation is plausible but not trivially automated.

Generated by OpenCVE AI on May 27, 2026 at 19:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Deploy a patch that upgrades agent‑zero to version 1.15 or newer
  • Configure appropriate security headers (Content‑Security‑Policy, X‑Content‑Type‑Options, Content‑Disposition) for the image_get endpoint
  • Restrict writable and publicly accessible directories so that only trusted files are served via image_get
  • Enforce least‑privilege access controls to prevent authenticated users from viewing arbitrary files

Generated by OpenCVE AI on May 27, 2026 at 19:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 29 May 2026 16:00:00 +0000

Type Values Removed Values Added
First Time appeared 3clyp50
3clyp50 agent-zero
Vendors & Products 3clyp50
3clyp50 agent-zero

Wed, 27 May 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 27 May 2026 15:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Agent Zero < 1.15 Stored XSS via image_get API Endpoint
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}


Subscriptions

3clyp50 Agent-zero
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-05-27T16:13:49.786Z

Reserved: 2026-05-18T19:22:26.749Z

Link: CVE-2026-47119

cve-icon Vulnrichment

Updated: 2026-05-27T16:12:46.627Z

cve-icon NVD

Status : Deferred

Published: 2026-05-27T15:16:30.690

Modified: 2026-06-17T10:54:20.320

Link: CVE-2026-47119

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-29T15:50:41Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')