{
  "id": "security/rust/agentclientprotocol__rust-sdk/2026-11-21-trace-viewer-stored-xss",
  "title": "Stored cross-site scripting when opening untrusted traces in the ACP trace viewer",
  "category": "security",
  "type": "xss",
  "severity": "medium",
  "cvss": null,
  "ecosystem": "rust",
  "project": {
    "owner": "agentclientprotocol",
    "repo": "rust-sdk",
    "url": "https://github.com/agentclientprotocol/rust-sdk"
  },
  "affected_versions": [
    "agent-client-protocol-trace-viewer >= 0.11.0, <= 5.4.0"
  ],
  "fixed_version": "5.5.0",
  "patched_versions": [
    "5.5.0"
  ],
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-57cv-67j2-fw5q",
    "cve_id": null,
    "url": "https://github.com/agentclientprotocol/rust-sdk/security/advisories/GHSA-57cv-67j2-fw5q",
    "reported_at": "2026-11-20T10:48:00+03:00",
    "published_at": "2026-11-21T16:59:46+03:00",
    "accepted_at": "2026-11-21T16:59:46+03:00"
  },
  "summary": "Opening a .jsons recording in agent-client-protocol-trace-viewer inserts the from and to component names into the SVG diagram as markup rather than plain text, so a recording with attacker-controlled names can run JavaScript in the viewer page (CWE-79). This affects versions >= 0.11.0, <= 5.4.0; the maintainer patched it in 5.5.0 with pull request 514, and the published advisory credits ucsurf.",
  "discovered_at": "2026-11-20T10:48:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-11-24T09:30:00+03:00",
  "pr": null,
  "references": [
    "https://github.com/agentclientprotocol/rust-sdk/pull/514",
    "https://github.com/agentclientprotocol/rust-sdk/commit/8ac65cf6b0b3371ae4d8231760cb91dad99e92ef"
  ]
}
