# CVE-2026-47119: Agent Zero stored XSS in image_get API endpoint

Source: https://junglewise.ai/threats/cve-2026-47119-agent-zero-stored-xss-in-image-get-api-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-27. Updated: 2026-05-27  
License: CC BY 4.0 with a link back

CVE-2026-47119 · Severity: medium · CVSS 6.1 · Published 2026-05-27

Agent Zero, an AI agent framework, is vulnerable to a security flaw in how it handles image files. An attacker can trick a user into opening a specially crafted image file (SVG) that executes malicious code in the user's browser. This could allow the attacker to steal login tokens or perform unauthorized actions on behalf of the user within the application.

Technologies: [Agent0ai Agent Zero](https://junglewise.ai/threats/technologies/agent-zero). Vendors: [Agent0ai](https://junglewise.ai/threats/vendors/agent0ai).

## Quick answers

**Is CVE-2026-47119 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-47119 being exploited in the wild.

**How severe is CVE-2026-47119?** Medium severity, with a CVSS score of 6.1, published 27 May 2026.

**Which products and versions are affected?** Agent0ai Agent Zero < 1.15.

**Is there a fix for CVE-2026-47119?** A patch was published on 2026-05-12: Fix committed to repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-47119 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-47119?** Check whether you run Agent0ai Agent Zero at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A stored cross-site scripting (XSS) vulnerability exists in Agent Zero's `/api/image_get` endpoint due to insufficient path validation and missing security headers. While the application implements an extension allowlist, it fails to enforce directory containment, allowing the retrieval of image-extension files from any location readable by the process. When a malicious SVG file containing script tags is requested, the server fails to provide a Content-Security-Policy (CSP), X-Content-Type-Options, or Content-Disposition header. This allows the script to execute within the application's origin, enabling an attacker to exfiltrate CSRF tokens and perform unauthorized API requests. The issue is fixed in version 1.15 by implementing symlink-aware path validation and hardening SVG responses with a sandboxed CSP.

## Affected products

- agent0ai Agent Zero < 1.15

## Timeline

- 2026-05-07: disclosed: Issue reported to vendor via GitHub
- 2026-05-12: patched: Fix committed to repository
- 2026-05-27: advisory: CVE published and NVD record created

## References

- [https://github.com/3clyp50/agent-zero/commit/1f2d5122265282d6b98bc36ee8f9d0f8ab76db9e](https://github.com/3clyp50/agent-zero/commit/1f2d5122265282d6b98bc36ee8f9d0f8ab76db9e)
- [https://github.com/agent0ai/agent-zero/issues/1609](https://github.com/agent0ai/agent-zero/issues/1609)
- [https://www.vulncheck.com/advisories/agent-zero-stored-xss-via-image-get-api-endpoint](https://www.vulncheck.com/advisories/agent-zero-stored-xss-via-image-get-api-endpoint)

## Related threats

- [agent-zero directory traversal in file browser initialization](https://junglewise.ai/threats/cve-2026-51853-agent-zero-1-7-1-8-1-9-and-1-10-is-vulnerable-to-directory)
- [agent-zero directory traversal in file save](https://junglewise.ai/threats/cve-2026-51852-agent-zero-1-7-1-8-1-9-and-1-10-is-vulnerable-to-directory)
- [Agent Zero path traversal and XSS in image_get API](https://junglewise.ai/threats/cve-2026-47118-agent-zero-path-traversal-and-xss-in-image-get-api)
